How to connect Script to Review

You can design a workflow to pass values from a Script into a Review task using global variables. The Review component is used for approvals.
  1. Design a new workflow.

  2. From the General section, drag and drop a Script task.
  3. In the Script task window, under Properties, in the General section, define a command/configuration.
    device = "N/A"
    command = "echo 'hello'"
    AVX::CMD(device+":@"+command)
    config = {}
    config["Commands"] = AVX::CONFIG
    AVX::OUTPUT(config)
    


  4. In the Script task window, under Properties, in the Global variables section, declare the commands as global variables to be passed into the next (Review) task.

  5. From the General section, drag and drop the Review task.
  6. In the Review task window, under Properties, in the Configuration section, define the configuration blocks.
  7. Refer the global variables defined in the Script.

  8. Connect and enable the workflow.

  9. Trigger the workflow from the Request :: View/Run page.

    • Script executed with custom messages.

    • Review task showing configuration blocks.