Skip navigation FileNet logo
Glossary  |  Help Directory  
  Help for Process Designer
  Search  |  Index
Process Reference  
Process Designer
Getting Started
Workflow Properties
Steps
  Add a step
  Move steps
  Specify step properties
  Delete a step or route
  Change step type
  Launch step
  General steps
  Submap steps
  System steps
    General properties
    Routing properties
    Rules properties
    General system functions
    Timer system functions
    Checkpoint system functions
    WaitForCondition system function
      WaitForCondition system function
      WaitForCondition parameters
      WaitForCondition example
  Component steps
Routes
Validate & Launch
   

WaitForCondition example

In this example of a credit application process, a credit application requires confirmation of salary information from the applicant's employer. As part of the CreditApp workflow, a WaitForCondition system function suspends processing to wait for another workflow, SalaryInfo, that contains the salary confirmation from the applicant's employer.

WaitForCondition workflow

The data fields defined in the two workflows are as follows:

Waiting (CreditApp)

Waited-for (SalaryInfo)

SocSecNum : <applicant ID number>

Salary : <reported by applicant>

ConditionResult : <row # of condition>

SSN : <applicant ID number>

BaseSalary : <reported by employer>

ConditionIdentifier : SSN

In the SalaryInfo workflow definition, the data field named SSN is specified as the ConditionIdentifier. The CreditApp workflow waits for a SalaryInfo workflow with a value in its SSN field that matches the value in the CreditApp's SocSecNum data field.

In the CreditApp workflow definition, the WaitForCondition is defined as follows:

 

Waited-for workflow

Waited-for ConditionIdentifier

Operator

ConditionIdentifier expression

#1

SalaryInfo

SSN

=

SocSecNum

If this wait condition is satisfied, the value of the Salary field in the CreditApp workflow will be updated with the value in BaseSalary in the SalaryInfo (waited-for) workflow.

Field to assign

Expression

Salary

BaseSalary

The WaitForCondition in CreditApp specifies a time limit of 7 days. It also specifies that the result of the wait will be saved in the field named ConditionResult. Since the Condition table contains only one condition that can satisfy the wait in this example, the value in ConditionResult can be either 0 or 1:

  • ConditionResult=0 : if no appropriate SalaryInfo work item occurs within the timeout limit
  • ConditionResult=1 : if a SalaryInfo work item with an SSN value matches the SocSecNum value of the waiting workflow.

After WaitForCondition processing completes, the CkResult step in the CreditApp workflow checks the ConditionResult to determine the next action:

  • If the appropriate SalaryInfo workflow occurred, (ConditionResult=1), the workflow continues with the CalcPmt step.
  • Otherwise, if the wait condition timed out (ConditionResult=0), the workflow continues with the Reject step.