Follow these steps to implement a conditional activity.
| Option | Description |
|---|---|
| JavaScript | Enter JavaScript in the available text box that returns a
valid Boolean (true or false) value.
If the runtime return value of the supplied script is true ,
the activity is performed. Note: If a script is present in the text
box, it overrides any human decision at run time to perform or skip
the activity.
|
| Set selected conditional activities | If the Is Conditional option is enabled
and no JavaScript is entered in the available text box, the activity
is performed only if previously selected. Use the tw.system.process.selectedConditionalActivities property
to set selected conditional activities. Note: If necessary, you can
build a graphical user interface (Coach) that enables users to
select the conditional activities to be performed as described in
the following table. The conditional activity sample available in [IBM_BPM_home]\imports\conditional-activity-sample.twx includes
a Coach that demonstrates this type of implementation.
|