As vRealize Automation and vRealize Orchestrator are used, the scope of their tasks is constantly expanding. The number of processes supporting these tasks is growing even faster. Fortunately, any process is just another object that can also be automated.
1. Searching for a process
2. Basic properties of the workflow object
3. Starting a workflow and passing parameters, token
4. Waiting for execution, receiving results
5. Action for starting a process
6. Starting a process according to a schedule
1. Search for a process
Any company or even individual vendors can provide packages and processes for vRealize Orchestrator, so there is no prohibition on using the same process names in vRO. This means that it is more correct to search for a process by its ID, and not by its name:
var myWorkflow = Server.getWorkflowWithId("11111111-aaaa-bbbb-cccc-11112222333");
or
var workflowId = "11111111-aaaa-bbbb-cccc-11112222333";
var myWorkflow = Server.findForType("Workflow", workflowId);
Both examples will return you the same Workflow object corresponding to the specified ID.
You can get the object of your current process during its execution like this:
var myWorkflow = workflow.currentWorkflow; var myWorkflow = workflow.rootWorkflow;
Both methods are identical. In this example, workflow is an object of the WorkflowToken class, an object of the current