Product/components used and version/fix level:
webMethods.io Integration
Question related to a free trial, or to a production (customer) instance?
Good day,
I have imported an API definition into my webMethods.io Project.
When I go to the resources and methods I see I can only execute a flow services but not a Workflow. Is it possible to execute a Workflow from the API resource? If so, what will be the best way to accomplish this?
Kind Regards,
Cobus Boshoff
Yes, you can APIfy a workflow. There are three conditions to make it work:
- The WF trigger must be of type webhook
- The last step of your WF needs to be a “return Data on Sync Webhook”
- You must perform a unit test on this step, otherwise the WF won’t be available for selection in the APIs section
Keep in mind workflows are triggered in asynchronous fashion, even if the trigger is a HTTP request.
Also, trigger invocations is limited to 15000 per minute.
If you have strong requirements at latency level, or if you need to expose an API that supports large volumes of calls, then flow services are a better choice
Hi Stephane,
Thank you! I will give it a try.
Kind Regards,
Cobus Boshoff
@Cobus_Boshoff
What is the use case for your API endpoint? Typically Flow services are recommended for API endpoints. What are you planning for your Workflow to do?