WaitForCondition system function

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

  1. From the General System Palette, drag a WaitForCondition step onto the workflow map where you want to begin waiting for another work item.
  2. In the Conditions table, click Add to select the workflow to wait for and other parameters for each condition. See Condition parameters for WaitForCondition.

    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.

  3. Under Timeout, specify a time limit for the wait.
  4. Under Condition Result Data Field, select a data field that will contain the row number (from the table above) of the condition that satisfied the wait. The data field must be an integer or integer array. If the data field is an array, you must manually specify an element in the array in the format

       <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.