Setting preconditions for ad hoc activities
You can specify preconditions that must be met before the activity is ready to start. Activities can start automatically after all the preconditions are met or manually by a user after all the preconditions are met. If you do not set any preconditions, automatic activities start as soon as the process is started and manual activities must be started by a user.
About this task
A precondition consists of two parts, a precondition
event, and a precondition expression. The two parts together determine
when the activity starts:
- If both are defined, then when the precondition event occurs, the precondition expression is evaluated. If the expression evaluates to true, the activity starts.
- If there is a precondition event but no precondition expression, the activity starts when the precondition event is met.
Note: In addition to determining when the activity first starts,
the precondition also determines when an activity that is already
started changes state. For example, from a waiting state to a working
state. See Runtime states for activities in process applications.
Procedure
To set a precondition: