VMware Aria Automation Tools

 View Only
  • 1.  Is it possible to determine the Execution ID of a vRO workflow in a script action

    Posted Mar 09, 2019 08:48 AM

    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.



  • 2.  RE: Is it possible to determine the Execution ID of a vRO workflow in a script action
    Best Answer

    Posted Mar 09, 2019 11:24 AM

    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



  • 3.  RE: Is it possible to determine the Execution ID of a vRO workflow in a script action

    Posted Mar 09, 2019 08:41 PM

    Perfect,

    Thankyou



  • 4.  RE: Is it possible to determine the Execution ID of a vRO workflow in a script action

    Posted Jun 30, 2020 11:26 AM

    But how to get current executionID ?



  • 5.  RE: Is it possible to determine the Execution ID of a vRO workflow in a script action

    Posted Sep 07, 2023 08:37 PM

    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.,



  • 6.  RE: Is it possible to determine the Execution ID of a vRO workflow in a script action

    Broadcom Employee
    Posted Sep 08, 2023 06:08 AM

    Here It is 

     

     

    var workflowId = workflow.currentWorkflow.id
    var executionId = workflow.id

     



  • 7.  RE: Is it possible to determine the Execution ID of a vRO workflow in a script action

    Posted Jan 27, 2025 11:40 AM

    Hello @Ankush Ankush, could you please point me to where this is documented ?
    Thank you