Invoking the automatic approval business rules

Follow these instructions to add the invoking of the automatic approval business rules in mainProcess process:
  1. Switch to the mainProcess editor.
  2. Click the Assign icon on the palette.
  3. Click the Invoke icon on the palette.
  4. Click the AcknowledgeReceipt figure AcknowledgeReceipt. The AcknowledgeReceipt figure AcknowledgeReceipt was added. The Invoke figure Invoke was added.
  5. Switch to the Properties view. The Display Name field is set to Invoke. The Name field is set to Invoke.
  6. In the details section, click the Description tab.
  7. In the Display Name field, type CheckAutoApproval. The Name field is set to CheckAutoApproval.
  8. Click the Properties tab.
  9. In the details section, click the Description tab.
  10. In the Display Name field, type CheckAutoApproval.
  11. In the details section, click the Details tab.
  12. Click Browse. The Select a Partner window opens.
  13. In the Partner Name (? = any character, * = any String) field, type LoanLimitsRuleInterface.
  14. Click OK.
  15. From the Operation list, click autoapproval.
  16. From the list, click autoapproval.
  17. Clear the Use Data Type Variables check box.
  18. Click Browse. The Select Request Variable window opens.
  19. In the Variable Name (? = any character, * = any String) field, type AutoApprovalRequest.
  20. Click OK.
  21. Click Browse. The Select Response Variable window opens.
  22. In the Variable Name (? = any character, * = any String) field, type AutoApprovalResponse.
  23. Click OK.
  24. Click the Properties tab.
  25. Switch to the mainProcess editor.
  26. Click the Choice icon on the palette.
  27. Click the Choice icon on the palette.
  28. Click the CheckAutoApproval figure CheckAutoApproval. The Choice figure Choice was added.
  29. Switch to the Properties view. The Display Name field is set to Choice. The Name field is set to Choice.
  30. In the details section, click the Description tab.
  31. In the Display Name field, type AutoApprovalTest.
  32. Switch to the mainProcess editor.
  33. Click the Case label.
  34. Switch to the Properties view.
  35. In the details section, click the Description tab.
  36. In the Display Name field, type AutoApproved.
  37. In the details section, click the Details tab.
  38. From the Expression language list, click Java.
  39. From the list, click Java. The Question window opens.
  40. Click Yes.
  41. In the Expression Type field, type return AutoApprovalResponse.getBoolean("response") == true;.

Feedback
(C) Copyright IBM Corporation 2005. All Rights Reserved.