Script parameters


When you are creating a process with the TrueSight Orchestration Development Studio application, use script parameters define variables for embedded or file scripts to use with the Script activity.

To map a value from a process to a variable in a script

  1. On the the TrueSight Orchestration Development Studio process canvas, double-click the Script Activity to open the Properties panel.
  2. On the Properties panel for the Script activity, in the Script Input Tokens pane, click the Add button.
  3. In the input pane, use the menu to select the parameter type.

    Script parameters

    Input type

    Description

    String

    Allows for the assignment of your defined string value in the value field (below the input type).

    In TrueSight Orchestration Platform version 7.9.01 or later, you can concatenate a string and a context item that points to a secure module configuration item. The resulting output is another secure data item.

    Numeric

    Allows for the assignment of your defined numeric value in the value field (below the input type).

    Date

    Allows for the assignment of your defined date value. The calendar button to the right of the Value field must be used to populate the field. All dates are stored as epoch values.

    XML

    Allows for the assignment of user defined XML in the value field. With the selection of 'XML', the value field will be extended.

    Context item

    Allows for the assignment of the value from another context item to this input token. Click the Browse button to the left of the value field to launch the context browser and select a context item.

    Module Configuration

    Allows for the assignment of the value from a module configuration item or group to this Input Token.

    Expand the tree to expose the module configuration item or Group and click to highlight the selection.

    Dynamic Context

    Allows for the assignment of the value of a previously defined dynamic context to this Token. The Browse button must be used to populate the value.

  4. If you need to transform the value before it is assigned to the token, click the Transform button and define the transformation.
  5. Click the Browse button to launch the Context Browser.
  6. Double-click the context item to select it.

    Warning

    Context items can be added rapidly using the Add Context button within the Context Browser.

  7. Click OK to save the script input token.

To map the value from a variable in a script to a context item

  1. On the the TrueSight Orchestration Development Studio process canvas, double-click the Script Activity to open the Properties panel.
  2. On the Properties panel for the Script activity, in the Script Output Tokens pane, click the Add button.
  3. Click the Browse button to launch the Context Browser.
  4. Double-click the context item that matches the name of the variable used in the script.

    Warning

    Context items can be added rapidly using the Add Context button within the Context Browser.

  5. In the Output pane, use the drop-down menu to select the context type.
  6. Click the Browse button to launch the Context Browser.
  7. Select the context name by double-clicking it.
  8. Click OK to save this script output token.

Related topic

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Platform 22.2