Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How to give inputs to a Workflow if called through a HTTP request ???
2015-04-07
11:03 PM
2,880 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to give inputs to the workflow if you are calling the workflow through an HTTP request ?
Example: http://X.X.X.X/rest/workflow/uid=<workflow id>
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you will have to make a http POST request to the url http://x.x.x.x/rest/workflows/<UUID of the workflow>/jobs.
Add http header Content-Type as "application/xml"
The http body should be xml like this
<?xml version="1.0" encoding="UTF-8"?> <workflowInput> <userInputValues> <key>ClusterName</key> <value>abc</value> <key>VserverName</key> <value>vs1</value> <key>VolumeName</key> <value>DemoVol023</value> </userInputValues> </workflowInput>
