Set the Scope to the Activity element which contains the Parameters.
Click the Columns button and select New Custom Column. Expression dialog opens.
Set the Type as String.
Select the Single Value
...
check box. Image Modified
Select Create operation > Operation from Model > IfThenElse.
Note
If you cannot see theOperation from Modeloperation under Operations, make sure the Expert mode is enabled.
Note
If you cannot see the IfThenElse operation, make sure the Apply Filter box is not checked.
Image Modified
Select Condition > Reset. Image Modified
Select Condition > Type Test. Image Modified
Select Condition and set the Type to Parameter. Image Modified
Select Then > Operation from
...
Model > StringConcat. Image Modified
Select A > Reset.
Select A > Script. Image Modified
Select A > arg1 > Remove. Image Modified
Select A > Create parameter > Metachain Navigation. Image Modified
Set the Parameter Name to direction.
Click Insert.
Under Metaclass or Stereotype, select Parameter, and under Property, select Direction. Image Modified
Select A > Script. From the Language drop-down list, select Javascript Rhino.
Insert the following script as the Body:
Code Block
title
Javascript Rhino
direction.iterator().next().name + " : "
Image Modified
Select B > Reset.
Select B > Metachain Navigation. Image Modified
Click Insert.
Under Metaclass or Stereotype, select Parameter, and under Property, select Type.
Click Insert again.
Under Metaclass or Stereotype, select Type, and under Property, select Name. Image Modified
Click OK.
Content block
id
1726464000
Sample model
The model used in these examples is the Case Studies for Querying the Model sample model. To open this model, you need to download case studies for querying the model.mdzip.