Creating a Graphical Scenario

You can create a scenario to drive an instance execution.


Before you begin: Open an experience in the work area.
  1. From the Scenario section of the action bar, click Create Scenario .
  2. Enter a name.
    A scenario appears in the tree marked with the icon.
  3. From the tree, select the new scenario.
    The scenario work area appears.
  4. To insert control ports, do as follows:
    KindActions
    Input control port Click Create an input control port
    Output control port Click Create an output control port

    Double-click a created port to rename it.

  5. To insert data ports, do as follows:
    KindActions
    Input data port Click Create an input data port
    Output data port Click Create an output data port
    Local data port Click Create a local data port

    Double-click a created port to rename it and define its type and value.

  6. To insert building blocks or call scenario blocks, do either:
    • Double-click the scenario area and select a block name in the provided list.
    • From the Block Library tab, drag a block name to the graphical editor.
    Note: To customize the created block, double-click the block and change the settings in the configuration dialog box.

    For more information about JavaScript block, see the scenario online help.

  7. To define the data flow, you can:

    • Drag input ports to output ports.
    • Drag local data ports from the top to input ports.
    • Drag output ports to local data ports from the bottom.

    Links appear between ports.
  8. To define the control flow, you can:

    • Drag input ports to output ports of the same type.
    • Drag input control ports from the left to input control ports.
    • Drag output control ports to output control ports from the right.

    Links appear between ports.
  9. From the Scenario section of the action bar, click Save as and enter a name.