◷ Reading Time: 4 minutes
Approving a loan is a complex process which requires human interaction in order to make certain decisions. This sample will explain the project for a loan approval scenario.
This model gives us the ability to make decisions during a loan application based on the Application Data and results of each decision.
Open sample project
The “Loan Approval” project can be found on FlexRule Welcome screen once you open FlexRule Designer. If not, all of the sample projects can be found at the default sample project location:
C:\Users\<user name>\Documents\Pliant Framework\FlexRule Designer\<designer version>\Samples\Loan Approval Workflow
“MainWorkFlow.xml” is the main model that connects all the flows.
1. Add a Workflow
Once you create a project add a Workflow to the project. This is the main file.
2. Collect and validate applications
Collect and validate application data by checking deadlines and age.
A Receive Task tool was used to collect applications and a Validator tool was used to validate.
3. Check eligibility according to the bureau’s standards
The bureau has created a set of standards and rules that should be followed when approving a loan.
A DRD was used to create the flow to check against each rule category.
5. Team review if required
If the routing path was selected as Team Review, it will go to the team review. In this step, a Human Task tool was used and it was assigned to get the approval of two team members. Once both of them are approved, the loan will be accepted.
6. Determine whether the loan is approved
A notification will be sent
Run the project
Data Composer is used to running the project and the samples are given in the project folder.
C:\Users\<user name>\Documents\Pliant Framework\FlexRule Designer\<designer version>\Samples\Loan Approval Workflow\data