Define an activity in the process that will call an operation to
check if an applicant is eligible for a loan.
To add the invoke activity to the CreditCheck,
follow these steps:
Switch to the process editor.
Click ,
which is the Assign icon, and then click , which is the Invoke icon.
Click the connection between CopyInput and Reply.
The Invoke activity is added.
Rename Invoke to CheckCredit.
In the Properties view, click Details.
Click Browse. The Select a Partner window
opens.
From the list, select LoanLimitsRuleInterfacePartner and
click OK. checkCredit will be
selected as the Operation.
Check the Use Data Type Variables checkbox.
Click the first button. The Select Variable for applicantInformation window
opens.
From the list, select CreditCheckRequest and
click OK.
Click the second button. The Select Variable for response window
opens.
From the list, select CreditCheckResponse and
click OK.
Click File > Save.
You will now take the reply from the invoke activity and use it to
direct the application down one of two paths in the process, to either loan
approval or loan declination.