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.
The data fields defined in the two workflows are as follows:
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:
|
||||
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:
After WaitForCondition processing completes, the CkResult step in the CreditApp workflow checks the ConditionResult to determine the next action: