Skip to main content
Solved

API Call to start a Workflow

  • September 16, 2024
  • 5 replies
  • 75 views

Is there a way that I can use to make an API call to trigger a workflow?
We want to start a workflow to Load Data into MDM after the data is refreshed in all source systems, each time it is refreshed.

Please suggest if there is a way do define a service for this.

Thanks in Advance :)

Best answer by may_kwok

Hi @aish_TF ,

Yes, as long as your ewf file is already deployed on the server, then the execute by running HTTP call will work. You just need to make sure the URL pattern matches the deployed server URL, and the ewf file name, and supply all variables defined, even if you want to pass null variable.

 

There can also be security involved with invoking workflow, in which case you will need to pass Authorization header, details are on the same doc page.

View original
Did this topic help you find an answer to your question?

5 replies

may_kwok
Star Blazer L3
Forum|alt.badge.img+4
  • Star Blazer L3
  • 81 replies
  • September 16, 2024

You can start a .ewf workflow by HTTP call @aish_TF. Documentation link is here: https://docs.ataccama.com/runtime-server/latest/workflow-and-scheduler/execute-workflows.html#http-request

 

Was this what you’re after?


  • Author
  • Star Blazer L1
  • 40 replies
  • September 17, 2024

Thanks @maykwok_hamilton 
Looks like what I am looking for. I’ll check this.

I have one question though - Is Workflow HTTP Remote API available out of the box or we need to enable it in some way?

Thanks in Advance :)


may_kwok
Star Blazer L3
Forum|alt.badge.img+4
  • Star Blazer L3
  • 81 replies
  • Answer
  • September 17, 2024

Hi @aish_TF ,

Yes, as long as your ewf file is already deployed on the server, then the execute by running HTTP call will work. You just need to make sure the URL pattern matches the deployed server URL, and the ewf file name, and supply all variables defined, even if you want to pass null variable.

 

There can also be security involved with invoking workflow, in which case you will need to pass Authorization header, details are on the same doc page.


  • Author
  • Star Blazer L1
  • 40 replies
  • September 17, 2024

@may_kwok Got it. Thanks a lot :)


  • Author
  • Star Blazer L1
  • 40 replies
  • October 1, 2024

@may_kwok I am trying to implement this. Is there a suggested application for Base64 encryption? I encrypted the information using an opensource application and got the below response 

401: The user request has no sufficient rights to run the workflow.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings