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
- On the the TrueSight Orchestration Development Studio process canvas, double-click the Script Activity to open the Properties panel.
- On the Properties panel for the Script activity, in the Script Input Tokens pane, click the Add button.
In the input pane, use the menu to select the parameter type.
Script parametersInput 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.
- If you need to transform the value before it is assigned to the token, click the Transform button and define the transformation.
- Click the Browse button to launch the Context Browser.
Double-click the context item to select it.
- Click OK to save the script input token.
To map the value from a variable in a script to a context item
- On the the TrueSight Orchestration Development Studio process canvas, double-click the Script Activity to open the Properties panel.
- On the Properties panel for the Script activity, in the Script Output Tokens pane, click the Add button.
- Click the Browse button to launch the Context Browser.
Double-click the context item that matches the name of the variable used in the script.
- In the Output pane, use the drop-down menu to select the context type.
- Click the Browse button to launch the Context Browser.
- Select the context name by double-clicking it.
- Click OK to save this script output token.
Related topic