Calling several workflows simultaneously runs the called workflows synchronously as part of the run of the calling workflow. The calling workflow waits for all of the called workflows to complete before it continues. The calling workflow can use the results of the called workflows as input parameters when it runs its subsequent schema elements.

Before you begin

  • Open a workflow for editing in the workflow editor.

  • Add some elements to the workflow schema.

About this task

You call several workflows simultaneously from another workflow by using the Nested Workflows element. You can use nested workflows to run workflows with user credentials that are different from the credentials of the user of the calling workflow.

Procedure

  1. Drag a Nested Workflows element from the Action & Workflow menu to the appropriate position in the workflow schema.

    The Choose workflow selection dialog box appears.

  2. Search for and select a workflow to start and click OK.
  3. Click the Edit icon (Edit icon) of the Nested Workflows element in the workflow schema.
  4. Click the Workflows tab.

    The workflow you selected in 2 appears in the tab.

  5. Set the IN and OUT bindings for this workflow in the IN and OUT tabs in the right panel of the Workflows schema element properties tab.
  6. Click the Connection Info tab in the right panel of the Workflows schema element properties tab.

    The Connection Info tab allows you to access workflows stored in a different server to the local one, using the appropriate credentials.

  7. To access workflows on a remote server, select Remote and click Not set to provide a host name or IP address for the remote server.
    Note:

    You can use the vRealize Orchestrator Multi-Node plug-in to call workflows on a remote server.

  8. Define the credentials with which to access the remote server.
    • Select Inherit to use the same credentials as the user who runs the calling workflow.

    • Select Dynamic and click Not set to select a set of dynamic credentials that a parameter of the credentials type defines elsewhere in the workflow.

    • Select Static and click Not set to enter the credentials directly.

  9. Click the Add Workflow button in the Workflows tab to select more workflows to add to the nested workflow element.
  10. Repeat 2 to 8 to define the settings for each of the workflows you add.
  11. Click the nested workflow element in the workflow schema.

    The number of workflows nested in the element appears as a numeral on the nested workflows element.

Results

You called several workflows simultaneously from a workflow.

What to do next

You can define long-running workflows.