When business rules are used in a workflow, you can assign
appropriate rule sets to an activity step.
To
specify rules for an activity step
Select the appropriate activity step, then click the Rules tab in the Properties pane.
On the Rules tab, specify the Type—when
the rule will execute at runtime.
Before Execution - The specified
rule set will execute before the step is enqueued.
On Save - The specified rule
set will execute any time that the participant saves the step.
CAUTION It is strongly recommended
that you do not use Asynchronous Rules with OnSave option because
a step which was previously locked will be automatically unlocked
after the rule has been executed, which might cause unexpected behavior
in your application. When a rule executes asynchronously, the work
item is removed from its queue, put into the isi queue for execution
by the vwisi process, and then returned to the original queue. During
this procedure, it is not possible to retain the lock on the work
object, so after the asynchronous rule executes, a work item that
was previously locked will no longer be locked by the user. This issue
does not apply for rules executed asynchronously Before Execution
or After Completion of the step.
After Completion - The specified
rule will execute after the step is completed.
From the Available RuleSets table, select a rule and click
the right arrow to add it to the Selected RuleSets table.