Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id1726464001
Content column
id1726464013
Content block
id1726464002

To display Parameter Direction and Parameter Type in a single table cell


  1. Create a Generic Table.
  2. Set the Element Type to Parameter and Activity.
  3. Set the Scope to the Activity element which contains the Parameters.
  4. Click the Columns button and select New Custom ColumnExpression dialog opens.
  5. Set the Type as String.
  6. Select the Single Value

...

  1.  check box.
    Image Modified
  2. Select Create operation > Operation from Model > IfThenElse.

    Note

    If you cannot see the Operation from Model operation 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

  3. Select Condition > Reset.
    Image Modified
  4. Select Condition > Type Test.
    Image Modified
  5. Select Condition and set the Type to Parameter.
    Image Modified
  6. Select Then > Operation from

...

  1. Model > StringConcat.
    Image Modified
  2. Select A > Reset.
  3. Select A > Script.
    Image Modified
  4. Select A > arg1 > Remove.
    Image Modified
  5. Select A > Create parameter > Metachain Navigation.
    Image Modified
  6. Set the Parameter Name to direction.
  7. Click Insert
  8. Under Metaclass or Stereotype, select Parameter, and under Property, select Direction.
    Image Modified
  9. Select A > Script. From the Language drop-down list, select Javascript Rhino.
  10. Insert the following script as the Body:

    Code Block
    titleJavascript Rhino
    direction.iterator().next().name + " : "

    Image Modified

  11. Select B > Reset.
  12. Select B > Metachain Navigation.
    Image Modified
  13. Click Insert
  14. Under Metaclass or Stereotype, select Parameter, and under Property, select Type.
  15. Click Insert again. 
  16. Under Metaclass or Stereotype, select Type, and under Property, select Name.
    Image Modified
  17. Click OK.
Content block
id1726464000

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