diff --git a/src/main/resources/bank loan origination and processing.bpmn b/src/main/resources/bank loan origination and processing.bpmn index 8259d0a..408dd71 100644 --- a/src/main/resources/bank loan origination and processing.bpmn +++ b/src/main/resources/bank loan origination and processing.bpmn @@ -1,5 +1,5 @@ - + @@ -23,30 +23,136 @@ + + TODO: Add Start Event Listener + + + + + + + + Flow_05a2cyr + + + + Flow_12y2spe + + + + + + Flow_02qdyzp + Flow_12y2spe + + + + + + + + + Flow_05a2cyr + Flow_02qdyzp + + + + Flow_1ythlix + + P7D + + + + Flow_0vnblrd + Flow_1r4dbfu + + + + Flow_14mj0nw + Flow_1q8k0ac + + Flow_0gqsjxl + Flow_1gva03v + + + Flow_0gqsjxl + + + Flow_1gva03v + + + + + + + Flow_0p8dd40 + + + + + + + + + Flow_0yyodwk + Flow_0p8dd40 + + + Flow_0yyodwk + + R2/P1D + + + + + + + + + + Flow_12o7iz6 + Flow_1rybhfo + Flow_0gr6q5q + Flow_1tykdw0 + + + Flow_1kp5g1n + Flow_1uqps3a + Flow_12o7iz6 + + + + + + + - + + Flow_0gr6q5q + Flow_1r4dbfu + Flow_1kp5g1n + + - - - - + + + - Flow_145cnel - - - =additionalCheck = false - + Flow_145cnel + Flow_1rybhfo + + Flow_0t0fgj1 Flow_05vdl8x @@ -59,6 +165,10 @@ Flow_0i2sxpr Flow_1nyx4yp + + Flow_0f7795l + + Flow_0f7795l @@ -67,36 +177,6 @@ Flow_1ythlix - - Flow_0h21b3d - - - - - - Flow_08s2y8v - Flow_0t0fgj1 - - - - - - - - - Flow_05vdl8x - Flow_0h21b3d - - - - - - - - - Flow_1nyx4yp - Flow_14mj0nw - Flow_1t0w6hs Flow_0i2sxpr @@ -108,7 +188,7 @@ - + Flow_0f5fqcz Flow_075y3tx @@ -184,150 +264,84 @@ Flow_01k4abh - - - - - - Flow_05a2cyr - - - - Flow_12y2spe - - - - - - Flow_02qdyzp - Flow_12y2spe - - - - - - - - - Flow_05a2cyr - Flow_02qdyzp - - - - Flow_14mj0nw - Flow_1q8k0ac - - Flow_0gqsjxl - Flow_1gva03v - - - Flow_0gqsjxl - - - Flow_1gva03v - - - - - - - Flow_0p8dd40 - - - - - - - - - Flow_0yyodwk - Flow_0p8dd40 - - - Flow_0yyodwk - - R2/P1D - - - - - Flow_0f7795l - - - - Flow_1ythlix - - P7D - - - - Start EL (jobType: "startEl") for gateway to check if we need more data + + Flow_0h21b3d + + - - - + + + + + + + - Flow_12o7iz6 - Flow_1rybhfo - Flow_0gr6q5q - Flow_1tykdw0 - + Flow_145cnel + =additionalCheck = true - - =additionalCheck = false - - - =additionalCheck = true - - - - - + + + + + + Flow_08s2y8v + Flow_0t0fgj1 + + + + + + + + + + + + + + + + + Flow_1tykdw0 + Flow_0vnblrd + + - + + + - Flow_1uqps3a - Flow_1t0w6hs - - - Flow_0gr6q5q - Flow_1r4dbfu - Flow_1kp5g1n - - - Flow_1kp5g1n - Flow_1uqps3a - Flow_12o7iz6 - - - - - - Flow_145cnel - Flow_1rybhfo - - - + Flow_05vdl8x + Flow_0h21b3d + + + - + - Flow_0yqe20b - Flow_1r4dbfu - - - - + Flow_1nyx4yp + Flow_14mj0nw + + + + + - Flow_1tykdw0 - Flow_0yqe20b + Flow_1uqps3a + Flow_1t0w6hs + + + =additionalCheck = true + @@ -336,7 +350,7 @@ - + @@ -345,72 +359,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -446,6 +394,12 @@ + + + + + + @@ -453,40 +407,100 @@ - + - - - - - - - + + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -512,10 +526,22 @@ + + + + + + + + + + + + @@ -524,18 +550,23 @@ + + + + + + + + + + + + - - - - - - - @@ -552,38 +583,21 @@ + + + + + + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - @@ -600,6 +614,14 @@ + + + + + + + + diff --git a/src/main/resources/calculate loan results.dmn b/src/main/resources/calculate loan results.dmn index 14dc1b8..8e25500 100644 --- a/src/main/resources/calculate loan results.dmn +++ b/src/main/resources/calculate loan results.dmn @@ -1,12 +1,20 @@ - - + + + + + creditScore + + + calculate_DTI_ratio(pi.monthly_debt, pi.annual_salary) + + loan.amount @@ -24,6 +32,9 @@ >800 + + <0.3 + <0.7*pi.annual_salary @@ -44,6 +55,9 @@ >800 + + <0.4 + <0.9*pi.annual_salary @@ -64,6 +78,9 @@ [700..800] + + <0.35 + <0.5*pi.annual_salary @@ -84,6 +101,9 @@ [700..800] + + <0.45 + <0.7*pi.annual_salary @@ -104,6 +124,9 @@ [500..700) + + <0.3 + <0.3*pi.annual_salary @@ -124,6 +147,9 @@ [500..700) + + <0.4 + <0.5*pi.annual_salary @@ -144,6 +170,9 @@ + + + @@ -162,11 +191,28 @@ + + + + + + + { "monthly_salary": annual_salary / 12, "DTI_ratio": monthly_debt / monthly_salary }.DTI_ratio + + + - + + + + + + + + diff --git a/src/main/resources/loan application form.form b/src/main/resources/loan application form.form index b2cac4a..33e8405 100644 --- a/src/main/resources/loan application form.form +++ b/src/main/resources/loan application form.form @@ -3,9 +3,9 @@ "executionPlatformVersion": "8.5.0", "exporter": { "name": "Camunda Web Modeler", - "version": "74577ef" + "version": "1110f25" }, - "schemaVersion": 16, + "schemaVersion": 17, "id": "Form_16l6p9i", "components": [ { @@ -19,6 +19,7 @@ "id": "Field_0xctawe" }, { + "label": "Address", "components": [ { "label": "First name", @@ -121,7 +122,6 @@ } ], "showOutline": true, - "label": "Address", "type": "group", "layout": { "row": "Row_07hr9nq", @@ -131,6 +131,7 @@ "path": "address" }, { + "label": "Contact", "components": [ { "label": "Email", @@ -175,7 +176,6 @@ } ], "showOutline": true, - "label": "Contact", "type": "group", "layout": { "row": "Row_1704ab1", @@ -185,6 +185,7 @@ "path": "contact" }, { + "label": "Personal Information", "components": [ { "label": "Social Security Number", @@ -195,7 +196,7 @@ }, "id": "Field_0t0pxlf", "key": "ssn", - "defaultValue": "134-31-1679" + "defaultValue": "134-23-4482" }, { "subtype": "date", @@ -212,6 +213,21 @@ "required": false } }, + { + "label": "Monthly Debt", + "type": "number", + "layout": { + "row": "Row_0afadec", + "columns": null + }, + "id": "Field_1f3eyo8", + "key": "monthly_debt", + "increment": "1234", + "description": "Monthly fixed expenses", + "validate": { + "required": true + } + }, { "label": "Annual Salary", "type": "number", @@ -224,7 +240,7 @@ "validate": { "required": true }, - "defaultValue": 55200 + "description": "Pre-tax" }, { "label": "Current employer", @@ -238,11 +254,10 @@ "validate": { "required": true }, - "defaultValue": "Styles and Speed Printing LLC." + "defaultValue": "Styles & Speed Printing LLC." } ], "showOutline": true, - "label": "Personal Information", "type": "group", "layout": { "row": "Row_1o2yh7x", @@ -252,6 +267,7 @@ "path": "pi" }, { + "label": "Loan Information", "components": [ { "label": "Amount requested", @@ -295,7 +311,6 @@ } ], "showOutline": true, - "label": "Loan Information", "type": "group", "layout": { "row": "Row_12f4rg9", diff --git a/src/main/resources/loan underwriting form.form b/src/main/resources/loan underwriting form.form index 40f0473..197cc48 100644 --- a/src/main/resources/loan underwriting form.form +++ b/src/main/resources/loan underwriting form.form @@ -3,7 +3,7 @@ "executionPlatformVersion": "8.5.0", "exporter": { "name": "Camunda Web Modeler", - "version": "74577ef" + "version": "1110f25" }, "schemaVersion": 16, "id": "Form_1a3j1g2",