Via the WaitForCondition system function, a work item waits for another work item that meets a specified condition. For further details, see About WaitForCondition processing.
TIP Before you define the WaitForCondition system function, the workflow definition of the waited-for work item must already exist in the workflow database. In addition, this workflow definition must include a condition identifier.
To specify a WaitForCondition system function
You can define multiple conditions. The first workflow to meet the specified criteria will satisfy the wait.
NOTE In a multi-server environment, the waiting work item and the waited for work item must be on the same Process Engine.
For example, to specify a time limit of 45 minutes after the wait begins, enter the following expression.
addminutes(systemtime(),45)
For example, to specify an expiration time of 01/01/2001 12:00:00, enter either:
convert("01/01/2001 12:00:00",time) or
stringtotime("01/01/2001 12:00:00","mm/dd/yyyy hh:mm:ss")
NOTE Entering a specific time is generally not recommended, because doing so can limit the reusability of the workflow definition. No timeout will occur if this system function executes after the specified time has already passed.
<data field name>[<expression that evaluates to the desired element number>].
At the end of WaitForCondition processing, the data field or array element you specify will hold a value, as appropriate:
In most cases, you should test the result in this data field in a subsequent step to determine what action to do next. See WaitForCondition example for details.