Defining variables
Create the variables that will store the data that is exchanged
between the LoanApprovalProcess component and the other components
it communicates with.
Copying loan request information
Assign the attributes of the received ApplicationInput
to variables so that you can invoke operations from within the process
using the data that is stored in the variables as input.
Invoking the automatic approval rules
Define an activity in the process that will call the business
rules component to check whether a loan can be approved without sending
it to a loan officer.
Defining a case for automatically approved loan requests
Based on the result from calling the business rules component,
we will use a Choice activity to divide the process into separate
paths. The loan request will follow one of two paths: automatic approval
or manual approval.