How to Connect Script to Script

You can define and declare values from one script and pass them into another Script task.
  1. Design a new workflow.

  2. From the General section, drag and drop the Script task.

  3. In the Script task window, under the General section, define the Script.

  4. In the Script task window, under the Global variables section, define and declare the value as a global variable.

  5. In the Script task window, under the Custom message section, define the custom messages to be displayed between workflow stages.

  6. Drag and drop another Script task into the workspace.
    Tip: You can also right-click and clone the first script task.
  7. Refer the global variable value from the first Script.

  8. Connect and enable the workflow.

    Note: For more information on enabling a workflow, click here.
  9. From the top left corner of the screen, click .
  10. From the menu displayed, click Request.
  11. On the Request :: Overview page, from the navigation pane on the left, click View/Run.
  12. To trigger the workflow, on the Request :: View/Run page, search for the Script to Script workflow and click .

    • The script is executed.

    • Values are passed from one script to another.

    Note: For more information on how to connect various tasks in the Visual Workflow studio, refer to the section Connecting tasks in Workflow Studio.