Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Answering userInteractionID with REST call not working

$
0
0

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/">

   <href>https://labvcot30.entdev.addev.ntrs.com:8281/vco/api/workflows/2700308b-ea6c-4c40-ae64-99ef97fb8154/executions/ff80808147b7443e014813261fb92d62/interaction/</href>

   <input-parameters>

      <e>

         <name>Status</name>

         <type>string</type>

      </e>

   </input-parameters>

   <name>Linux Stub : SNApproval</name>

   <relations>

      <link>

         <e>

            <href>https://labvcot30.entdev.addev.ntrs.com:8281/vco/api/workflows/2700308b-ea6c-4c40-ae64-99ef97fb8154/executions/ff80808147b7443e014813261fb92d62/</href>

            <rel>up</rel>

         </e>

         <e>

            <href>https://labvcot30.entdev.addev.ntrs.com:8281/vco/api/workflows/2700308b-ea6c-4c40-ae64-99ef97fb8154/executions/ff80808147b7443e014813261fb92d62/interaction/presentation/</href>

            <rel>down</rel>

         </e>

         <e>

            <href>https://labvcot30.entdev.addev.ntrs.com:8281/vco/api/workflows/2700308b-ea6c-4c40-ae64-99ef97fb8154/executions/ff80808147b7443e014813261fb92d62/interaction/</href>

            <rel>add</rel>

         </e>

      </link>

   </relations>

   <state>waiting</state>

</Response>

 

 

Any help appreciated.



Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>