Hi All,
My usecase is to stop workflow till it is approved/rejected by external system(servicenow). The workflow is using "User Interaction" to wait for approval/rejection of the request. The external system(servicenow) makes REST call to the flow. I am following the link "http://pubs.vmware.com/vsphere-51/index.jsp#com.vmware.vsphere.vco_develop_web_services.doc/GUID-AF6DEC91-FABD-4ABA-8D77-90CA1CCB79AF.html"
As per the link make a POST request to the user interaction instance for the particular workflow execution:
POST https://{vcoHost}:{port}/api/workflows/{workflowID}/executions/{executionID}/interaction/
I am making POST to /api/workflows/2700308b-ea6c-4c40-ae64-99ef97fb8154/executions/ff80808147b7443e014813261fb92d62/interaction/
with the request body
<execution-context xmlns="http://www.vmware.com/vco">
<parameters>
<parameter name="Status" type="string">
<string>Approved</string>
</parameter>
</parameters>
</execution-context>
where 2700308b-ea6c-4c40-ae64-99ef97fb8154 -> workflow id & ff80808147b7443e014813261fb92d62 -> running instance id. Is it required to pass UserInteractionID ?
It returns the following
<Response xmlns="https://labvcot30.entdev.addev.ntrs.com/vco/api/workflows/2700308b-ea6c-4c40-ae64-99ef97fb8154/executions/ff80808147b7443e014813261fb92d62/interaction/">
<input-parameters>
<e>
<name>Status</name>
<type>string</type>
</e>
</input-parameters>
<name>Linux Stub : SNApproval</name>
<relations>
<link>
<e>
<rel>up</rel>
</e>
<e>
<rel>down</rel>
</e>
<e>
<rel>add</rel>
</e>
</link>
</relations>
<state>waiting</state>
</Response>
Any help appreciated.