I have a vRO workflow that creates a 'User Interaction' that I want to reply to via REST API using
https://{orchestrator_host}:{port}/vco/api/workflows/{workflowID}/executions/{executionID}/interaction/
In the workflow, before the 'User Interaction' action I want to use a script action to determine the workflow ID and ececution ID. The first is easy, I use the javascript workflow.id but I have not been able to find the execution ID of the current workflow.
Any help here would be greatly appreciated.
The static reference you're using (workflow) is actually a WorkflowToken object which has the following members
-- credit - vroapi.com
If you want the ID of the workflow you can get it from
workflow.currentWorkflow.id
HTH
The static reference you're using (workflow) is actually a WorkflowToken object which has the following members
-- credit - vroapi.com
If you want the ID of the workflow you can get it from
workflow.currentWorkflow.id
HTH
Perfect,
Thankyou
But how to get current executionID ?
was this ever answered - i require the currentWorkflow execution Id and then i need a way to run again if failed. If someone else is trying this please let me know.,
Here It is
var workflowId = workflow.currentWorkflow.id
var executionId = workflow.id