IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Modeling processes > Create a business process definition (BPD) > Configure conditional activities

Implementing a conditional activity

Complete the following steps to implement a conditional activity.


Procedure

  1. Open a business process definition (BPD) in the Process Designer.

  2. In the BPD diagram, click the activity that you want to make conditional.

  3. Click the Condition tab in the properties, and then select the Is Conditional option. The activity in the BPD diagram now includes a diamond-shaped icon to indicate that it is conditional.

  4. Select the conditional activity for execution by using one of the following options:
    Option Description
    JavaScript Enter JavaScript in the available box. It returns a valid Boolean ( true or false) value. If the runtime return value of the supplied script is true, the activity is carried out.

    If a script is present in the box, it overrides any human decision at run time to carry out or skip the activity.

    Set selected conditional activities If the Is Conditional option is enabled and no JavaScript is entered in the box, the activity is carried out only if previously selected. Use the tw.system.process.selectedConditionalActivities property to set selected conditional activities.

    If necessary, you can build a graphical user interface (Coach) to select the conditional activities that must be carried out. The conditional activity sample available in INSTALL_ROOT\BPM\Lombardi\imports\conditional-activity-sample.twx includes a Coach that demonstrates this type of implementation.

    IBM BPM Performance Data Warehouse records data that can be used to analyze the conditional activities. When a conditional activity is skipped, a tracking point is created with SKIP appended to the name of the skipped activity. A tracking point is created in the Performance Data Warehouse TRACKINGPOINT views each time an activity is skipped. Using this data, you can generate reports to show which activities are skipped and how often those activities are skipped in a process instance.

Configure conditional activities