To provide services in the application, you will add components in the assembly diagram. Each component has a specific task within the application and an interface to communicate with other components. To allow access to the business process from components outside of the module, you will add stand-alone references to the module.
Component Type | Name | Purpose |
---|---|---|
Business Process ![]() |
mainProcess | You will create this central component to contain the business logic that evaluates the loan requests received by your application. mainProcess is a service that will access the other business services in the loan application, such as the rule group and human tasks, to accomplish this goal. Through a series of checks and choices that you create, the business process will direct the loan request to either approved or rejected. |
Stand-alone References ![]() |
Stand-alone References | You will add Stand-alone References to use existing JavaServer Pages (JSPs) and Enterprise JavaBeans (EJBs) to interact with the components that you create in the loan application module. This will allow you to quickly test the loan application from a Web browser. |
Rule Group ![]() |
LoanLimits | You will create business rules to determine, for example, what the minimum credit rating required to approve a loan is, or what the maximum loan request amount to be auto-approved is. These rules will be contained in the rule group. |
Human Task ![]() |
FollowUpDeclinedApp | You will create a human task to delegate the responsibility of following up on a rejected loan to a bank employee, perhaps to provide references to credit counselling services. This action cannot be completed automatically, and requires the skills or authority of a person. |
Human Task ![]() |
ProcessTheApplication | Another human task that you will create to handle the manual processing of a loan application. |
Human Task ![]() |
CompleteTheLoan | Another human task that you will create to acknowledge the auto approval of a loan application. |
Java ![]() |
CreditCheck | You will create this Java component to use an existing Java code implementation that generates a random value for an applicant's credit rating. |
The mainProcess component provides a business process that executes the business logic, including receiving the loan request, checking the loan amount, sending a reply and delegating the request to a bank employee.
Stand-alone references stand alone, which means that their implementation resides outside of the module, and they allow existing applications outside of your module to invoke the services of the components contained in the module. In this sample, the bank customer needs a web interface to process its data to the bank. To do that, you need a standalone-reference to implement this interface.