List input with static values


Use the following procedure to define an Operator Dialog activity in the TrueSight Orchestration Development Studio application that prompts the operator to select from a list of values when the process runs in the TrueSight Orchestration Operator Control Panel application.

The list input type prompts the operator to select one or more values from a list. Selected values are assigned to a specified context item. By default all inputs are not required. The labels you provide are displayed in TrueSight Orchestration Operator Control Panel when executing the process. From the Properties tab of the Operator Dialog Property Panel, use the following steps to add a list input.

For lists, the mapped value is an XML document. With multiple selections the value would be mapped as shown in the following example:

<items>
   <item>[first item selected by user]</item>
   <item>[second item selected by user]</item>
   <item>[third item selected by user]</item>
</items>

If only one item is selected, the value would be mapped as shown in the following example:

<items>
   <item>[item selected by user]</item>
</items>

To define a list input with static value

  1. In the Properties tab of the Operator Dialog, type the value for the Header and Description fields and click the Add button.
  2. Change the type by selecting the row and the field in the Type column, and then selecting List.
  3. Click the field in the Label column.
  4. Type the label for the input in the Label column and click Enter.
  5. If the operator must provide a valuer select the Required check box. By default, all inputs are non\-required.
  6. Click the field in the Specialized Definition column for an input.
  7. If you want to select multiple values, select the Allow multiple selections check box in the List Input Parameter window.
  8. Click the Add button to add an element.
  9. In the newly-created row, double-click the field in the Element column and type the element name.
  10. To create a list with dynamic selections, select the Provide Dynamic Selections box.
    1. Click the context browser button.
    2. Select a context item.
    3. Click Select.
  11. To set a default value click the Selected by default check box.

    Warning

    In order to select the defaults, the context item value must be a "flat" XML structure with a root tag that contains child tags (child tags cannot contain any children).

    For example:

    <name>
    <first option>
    <second option>
    </name>
  12. When all elements are added and appear in order you want, click OK. You can adjust the order using the Up and Down arrows.
  13. Click the field in the Context column.
  14. Select the context item to which this input value will be mapped.
  15. When you have added all inputs, click OK.

Related topic

 

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

TrueSight Orchestration Platform 22.2