cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Workflow API's from Cloud Foundry MTA / HTML5 module

Sapcoder
Explorer
0 Kudos

How can I consume the Workflow API's available in the API Business Hub from a custom UI5 application? Specifically I am trying to start a workflow instance from a custom UI5 app - all in Cloud Foundry.

I have tried different variations and am getting the following issues:

XCSRF error - cannot fetch token

No Authentication

I've tried putting the whole URL in the code and also tried using destination using xs_app.json.

How can I call the API using the Client Secret and ID from the workflow service so that I can successfully call the API from my app? Are there any tutorials specific to CF or sample apps that do this?

Accepted Solutions (1)

Accepted Solutions (1)

Archana
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Sarah,

Follow this documentation to call workflow API in custom UI in CF. You need to define the route in xs-app.json and then use the API in the controller.

Answers (2)

Answers (2)

Sapcoder
Explorer
0 Kudos

Thank you both! I'd prefer to use a start form as it is easier, but the controls are limited. I require things like Check Boxes which are not available in the start form.

stefan_henke
Contributor
0 Kudos