Follow these instructions to add the invoking of the automatic approval
business rules in mainProcess process:
- Switch to the mainProcess editor.
- Click the Assign icon
on the palette.
- Click the Invoke icon
on the palette.
- Click the AcknowledgeReceipt figure
.
The AcknowledgeReceipt figure
was added.
The Invoke figure
was added.
- Switch to the Properties view.
The Display Name field is set to Invoke.
The Name field is set to Invoke.
- In the details section, click the Description tab.
- In the Display Name field, type CheckAutoApproval.
The Name field is set to CheckAutoApproval.
- Click the Properties tab.
- In the details section, click the Description tab.
- In the Display Name field, type CheckAutoApproval.
- In the details section, click the Details tab.
- Click Browse.
The Select a Partner window opens.
- In the Partner Name (? = any character, * = any String) field, type LoanLimitsRuleInterface.
- Click OK.
- From the Operation list, click autoapproval.
- From the list, click autoapproval.
- Clear the Use Data Type Variables check box.
- Click Browse.
The Select Request Variable window opens.
- In the Variable Name (? = any character, * = any String) field, type AutoApprovalRequest.
- Click OK.
- Click Browse.
The Select Response Variable window opens.
- In the Variable Name (? = any character, * = any String) field, type AutoApprovalResponse.
- Click OK.
- Click the Properties tab.
- Switch to the mainProcess editor.
- Click the Choice icon
on the palette.
- Click the Choice icon
on the palette.
- Click the CheckAutoApproval figure
.
The Choice figure
was added.
- Switch to the Properties view.
The Display Name field is set to Choice.
The Name field is set to Choice.
- In the details section, click the Description tab.
- In the Display Name field, type AutoApprovalTest.
- Switch to the mainProcess editor.
- Click the Case label.
- Switch to the Properties view.
- In the details section, click the Description tab.
- In the Display Name field, type AutoApproved.
- In the details section, click the Details tab.
- From the Expression language list, click Java.
- From the list, click Java.
The Question window opens.
- Click Yes.
- In the Expression Type field, type return AutoApprovalResponse.getBoolean("response") == true;.