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 checkbox.
    Image Modified
  7. 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

  8. Select Condition > Reset.
    Image Modified
  9. Select Condition > Type Test.
    Image Modified
  10. Select Condition and set the Type to Parameter.
    Image Modified
  11. Select Then > Operation from Model > StringConcat.
    Image Modified
  12. Select A > Reset.
  13. Select A > Script.
    Image Modified
  14. Select A > arg1 > Remove.
    Image Modified
  15. Select A > Create parameter > Metachain Navigation.
    Image Modified
  16. Set the Parameter Name to direction.
  17. Click Insert
  18. Under Metaclass or Stereotype, select Parameter, and under Property, select Direction.
    Image Modified
  19. Select A > Script. From the Language drop-down list, select Javascript Rhino.
  20. Insert the following script as the Body:

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

    Image Modified

  21. Select B > Reset.
  22. Select B > Metachain Navigation.
    Image Modified
  23. Click Insert
  24. Under Metaclass or Stereotype, select Parameter, and under Property, select Type.
  25. Click Insert again. 
  26. Under Metaclass or Stereotype, select Type, and under Property, select Name.
    Image Modified
  27. Click OK.