Created
May 11, 2020 20:32
-
-
Save rafaeltuelho/d5fab2ccc33fe1bd1cd6a15649a21961 to your computer and use it in GitHub Desktop.
Loan prequalification.dmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dmn:definitions xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" xmlns="http://www.trisotech.com/definitions/_e60ee8db-ad8b-405e-973b-195dd069c174" xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" xmlns:kie="http://www.drools.org/kie/dmn/1.2" xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" id="_e60ee8db-ad8b-405e-973b-195dd069c174" name="Loan prequalification" typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" namespace="http://www.trisotech.com/definitions/_e60ee8db-ad8b-405e-973b-195dd069c174"> | |
<dmn:extensionElements/> | |
<dmn:itemDefinition id="_752AC063-7FAD-4A9D-B7D6-49F01A7222B1" name="tLoanPrequalification" isCollection="false"> | |
<dmn:typeRef>string</dmn:typeRef> | |
<dmn:allowedValues id="_F50A70B8-632D-461F-9B3A-469BEDDFD69B"> | |
<dmn:text>"Likely approved","Possibly approved","Likely disapproved"</dmn:text> | |
</dmn:allowedValues> | |
</dmn:itemDefinition> | |
<dmn:itemDefinition id="_FF36EFCB-A606-4860-986C-33C5C66BF563" name="tCreditScore" isCollection="false"> | |
<dmn:typeRef>number</dmn:typeRef> | |
<dmn:allowedValues id="_5B397698-C7DF-4306-93ED-3E58058E9E81"> | |
<dmn:text>[300..850]</dmn:text> | |
</dmn:allowedValues> | |
</dmn:itemDefinition> | |
<dmn:itemDefinition id="_C2EDEAC5-8AC0-4DA0-950E-ADC140D56F66" name="tPercent" isCollection="false"> | |
<dmn:typeRef>number</dmn:typeRef> | |
</dmn:itemDefinition> | |
<dmn:itemDefinition id="_CE385532-5D78-4825-B8DB-3AFAFA4AF28E" name="tPositiveNumber" isCollection="false"> | |
<dmn:typeRef>number</dmn:typeRef> | |
<dmn:allowedValues id="_897C33F5-0ADC-477D-B291-5FAE3DB1DD49"> | |
<dmn:text>>0</dmn:text> | |
</dmn:allowedValues> | |
</dmn:itemDefinition> | |
<dmn:itemDefinition id="_0D81C503-B87C-4455-B575-95E6BF1AF4E5" name="tAffordabilityCategory" isCollection="false"> | |
<dmn:typeRef>string</dmn:typeRef> | |
<dmn:allowedValues id="_39C79B3E-7B19-4A52-B8E4-D2FE542DAEF1"> | |
<dmn:text>"Affordable","Marginal","Unaffordable"</dmn:text> | |
</dmn:allowedValues> | |
</dmn:itemDefinition> | |
<dmn:decision id="_5b23520d-686c-458d-b28d-fd9d9ac3d18a" name="Loan prequalification"> | |
<dmn:extensionElements/> | |
<dmn:question><p>Based on self-reported borrower income, credit score, loan amount, likely eligibility form a mortgage.</p></dmn:question> | |
<dmn:allowedAnswers><p>Likely approved, Possibly approved, Likely disapproved</p></dmn:allowedAnswers> | |
<dmn:variable id="_10b822e1-65b2-440f-8912-6b8fb20b39a0" name="Loan prequalification" typeRef="Any"/> | |
<dmn:informationRequirement id="_24ed896a-da0d-4603-a891-bc5e19794f36"> | |
<dmn:requiredDecision href="#_57f978a5-37ef-4319-9bf9-cd027f1532e2"/> | |
</dmn:informationRequirement> | |
<dmn:informationRequirement id="_1401a8b3-cf3f-4038-8133-1ced7e78866a"> | |
<dmn:requiredInput href="#_ed4486d8-fcf3-4236-9b52-ea9864b40211"/> | |
</dmn:informationRequirement> | |
<dmn:decisionTable id="_b72c1fb9-e26f-4372-99a8-2229e1c4bfdb" typeRef="Any" hitPolicy="ANY" preferredOrientation="Rule-as-Row" outputLabel="Loan prequalification"> | |
<dmn:input id="_b9d00b49-024b-4596-892e-c4c12e02b8c2"> | |
<dmn:inputExpression id="_A8DD3F37-E35D-4522-81A3-D8EF84B9704E" typeRef="tCreditScore"> | |
<dmn:text>Credit score</dmn:text> | |
</dmn:inputExpression> | |
<dmn:inputValues id="_BF9BD117-4D47-4659-AE25-A58E410766B7"> | |
<dmn:text>[300..850]</dmn:text> | |
</dmn:inputValues> | |
</dmn:input> | |
<dmn:input id="_a5dd7461-a323-439d-8492-fa43034fcf27"> | |
<dmn:inputExpression id="_EDD6215B-AB92-4509-8D44-FCDEF8B5F72B" typeRef="tAffordabilityCategory"> | |
<dmn:text>Affordability category</dmn:text> | |
</dmn:inputExpression> | |
<dmn:inputValues id="_72AB5CAC-C21D-4760-80DA-808E39FB1626"> | |
<dmn:text>"Affordable","Marginal","Unaffordable"</dmn:text> | |
</dmn:inputValues> | |
</dmn:input> | |
<dmn:output id="_0483a5ec-3576-4ce5-b9d1-9128456bcdaf"/> | |
<dmn:annotation name="Description"/> | |
<dmn:rule id="_94f97fbc-f224-482d-b8ab-6ce0b382716f"> | |
<dmn:inputEntry id="_b94f20fd-c8d6-4e1a-965b-4ff3d79d2aeb"> | |
<dmn:text>>720</dmn:text> | |
</dmn:inputEntry> | |
<dmn:inputEntry id="_c8cff310-d1ec-4a74-9d6c-15d78852982d"> | |
<dmn:text>"Affordable", "Marginal"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_55dfc25d-a288-4436-ab60-df1500bd22dd"> | |
<dmn:text>"Likely Approved"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_c5fed4b9-7875-4030-bdf6-e44533a00e66"> | |
<dmn:inputEntry id="_aff25ff4-2792-46ab-ba38-bc49fe462b5b"> | |
<dmn:text>(680..720]</dmn:text> | |
</dmn:inputEntry> | |
<dmn:inputEntry id="_833aca64-3a86-4630-9302-704285236433"> | |
<dmn:text>"Affordable"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_48b0b31a-b266-4fa6-b071-77b030b5425e"> | |
<dmn:text>"Likely Approved"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_4fdaa79d-5d9d-4243-bc3a-d2a198e4bd5d"> | |
<dmn:inputEntry id="_79c6de3a-c620-4e95-9b5c-ee85a9dea118"> | |
<dmn:text>(680..720]</dmn:text> | |
</dmn:inputEntry> | |
<dmn:inputEntry id="_2f717baa-ee86-4185-b5a4-170e2012bc9c"> | |
<dmn:text>"Marginal"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_25f2d1a2-f549-4ebf-86b7-295cc9953c6c"> | |
<dmn:text>"Possibly Approved"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_c03349e2-3862-4c86-ae97-a059fdfae5a3"> | |
<dmn:inputEntry id="_31e29cd5-193a-491c-a81c-ce62467e692f"> | |
<dmn:text>[620..680]</dmn:text> | |
</dmn:inputEntry> | |
<dmn:inputEntry id="_e489c991-afd7-4857-953a-539e16a3babb"> | |
<dmn:text>"Affordable"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_ab04458d-ac05-4832-9309-63b0dfb665c0"> | |
<dmn:text>"Possibly Approved"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_9820295f-780d-4872-8d73-be6df902aa5f"> | |
<dmn:inputEntry id="_21684513-fc76-4cd0-9a7c-0a9759b356cf"> | |
<dmn:text>[620..680]</dmn:text> | |
</dmn:inputEntry> | |
<dmn:inputEntry id="_260f3158-5412-44b1-bf2c-b4e0c8e0f97d"> | |
<dmn:text>"Marginal"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_dda68035-2aca-49c9-b5a5-f0e97a0b7a8e"> | |
<dmn:text>"Likely Disapproved"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_7a1123a6-d69b-4488-85aa-13e4a370cfa2"> | |
<dmn:inputEntry id="_4f8c4531-83ba-40c8-8fa9-727b904c39cc"> | |
<dmn:text><620</dmn:text> | |
</dmn:inputEntry> | |
<dmn:inputEntry id="_fb173725-5fd8-4497-97c7-8374c49fc4c3"> | |
<dmn:text>-</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_7a72709b-d617-4854-8be8-38dd3c484134"> | |
<dmn:text>"Likely Disapproved"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_59048103-0273-46c0-961a-451e6ebed9c0"> | |
<dmn:inputEntry id="_7f390a4b-fe9f-47d2-9a9f-1b860eab2d74"> | |
<dmn:text>-</dmn:text> | |
</dmn:inputEntry> | |
<dmn:inputEntry id="_2ba6bd44-9e80-4716-8615-fa50b299b52d"> | |
<dmn:text>"Unaffordable"</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_00b37456-5774-4a5a-95a1-5ffff9a00ab8"> | |
<dmn:text>"Likelly Disapproved"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
</dmn:decisionTable> | |
</dmn:decision> | |
<dmn:inputData id="_ed4486d8-fcf3-4236-9b52-ea9864b40211" name="Credit score"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_62c5f720-63bf-4d9a-a7cb-76ec97c80a77" name="Credit score" typeRef="tCreditScore"/> | |
</dmn:inputData> | |
<dmn:inputData id="_456a0d6e-7b84-4319-9479-0b114ea55c15" name="Loan rate pct"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_20359354-c56c-43f8-ae04-b2624d9d7186" name="Loan rate pct" typeRef="tPercent"/> | |
</dmn:inputData> | |
<dmn:inputData id="_d0b94dfd-02ff-43fc-9b01-972455c7607f" name="Down payment"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_a9b29d7c-a297-4fb2-85e6-c39e6a0aea8e" name="Down payment" typeRef="tPositiveNumber"/> | |
</dmn:inputData> | |
<dmn:inputData id="_05337324-f934-4474-86d9-a73a1995076c" name="Monthly income"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_3cdacdae-94e8-4a7f-a044-990be7cc13db" name="Monthly income" typeRef="tPositiveNumber"/> | |
</dmn:inputData> | |
<dmn:inputData id="_cbde6c2a-f037-450d-b5cd-f08b62867b60" name="Purchase price"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_59a104da-eba6-4570-b3bd-e3c5a6ba966b" name="Purchase price" typeRef="tPositiveNumber"/> | |
</dmn:inputData> | |
<dmn:decision id="_57f978a5-37ef-4319-9bf9-cd027f1532e2" name="Affordability category"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_9cbe1ab2-b576-4d8f-86d9-1e6b75016d25" name="Affordability category" typeRef="tAffordabilityCategory"/> | |
<dmn:informationRequirement id="_d88a25a5-edb5-4290-8390-0e333da4a5c4"> | |
<dmn:requiredDecision href="#_fc2945a3-c5f2-4927-a41d-e5ef36098e78"/> | |
</dmn:informationRequirement> | |
<dmn:decisionTable id="_2077a564-d184-4f1b-8cea-478f8a04d2c5" typeRef="tAffordabilityCategory" hitPolicy="UNIQUE" preferredOrientation="Rule-as-Row" outputLabel="Affordability category"> | |
<dmn:input id="_6f083533-a89d-4e28-868c-a470d20f173c"> | |
<dmn:inputExpression id="_00FF49EC-DD61-4052-9369-E512519D8CFB" typeRef="tPercent"> | |
<dmn:text>DTI pct</dmn:text> | |
</dmn:inputExpression> | |
</dmn:input> | |
<dmn:output id="_a3db9b35-ac3a-4a4e-a58a-6cf95b08e4f4"> | |
<dmn:outputValues id="_801AD77C-46C1-4D57-832B-255058F8CE6F"> | |
<dmn:text>"Affordable","Marginal","Unaffordable",null</dmn:text> | |
</dmn:outputValues> | |
</dmn:output> | |
<dmn:annotation name="Description"/> | |
<dmn:rule id="_1cd4fcb2-a417-47a7-9758-887a80b62f5c"> | |
<dmn:inputEntry id="_30e5009e-a611-43ab-94e0-b031fae88148"> | |
<dmn:text><26</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_92e7159a-c567-484e-8e7c-1394e1533ec0"> | |
<dmn:text>"Affordable"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_59784f42-2219-47a2-953c-59e2a0e23e81"> | |
<dmn:inputEntry id="_0c67e1fb-76ea-40e7-9ffb-f1ebfe507853"> | |
<dmn:text>[26..28]</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_3fa37b76-a346-4e09-bd73-717b35288610"> | |
<dmn:text>"Marginal"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
<dmn:rule id="_075aa8d3-0ab3-49b9-8ee6-29b3fdb56431"> | |
<dmn:inputEntry id="_c4391c67-001a-4618-8438-b7a3dcf86043"> | |
<dmn:text>>28</dmn:text> | |
</dmn:inputEntry> | |
<dmn:outputEntry id="_99a84c8e-b9d3-465d-b7a3-3660c254dace"> | |
<dmn:text>"Unaffordable"</dmn:text> | |
</dmn:outputEntry> | |
<dmn:annotationEntry> | |
<dmn:text/> | |
</dmn:annotationEntry> | |
</dmn:rule> | |
</dmn:decisionTable> | |
</dmn:decision> | |
<dmn:knowledgeSource id="_87e05c21-6181-471b-a2f6-bba2e1bb59a9" name="Loan approval guidelines"> | |
<dmn:extensionElements/> | |
<dmn:authorityRequirement id="_382242b5-6817-4a6c-8168-016d65f84407"> | |
<dmn:requiredDecision href="#_5b23520d-686c-458d-b28d-fd9d9ac3d18a"/> | |
</dmn:authorityRequirement> | |
<dmn:type>PDF</dmn:type> | |
</dmn:knowledgeSource> | |
<dmn:decision id="_fc2945a3-c5f2-4927-a41d-e5ef36098e78" name="DTI pct"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_72c78484-891f-4dfd-b5f5-f5a288b2e62e" name="DTI pct" typeRef="tPercent"/> | |
<dmn:informationRequirement id="_32767a27-9517-4cac-a449-991da0caeb1f"> | |
<dmn:requiredInput href="#_05337324-f934-4474-86d9-a73a1995076c"/> | |
</dmn:informationRequirement> | |
<dmn:informationRequirement id="_a2d7154f-85e3-44ff-a342-b9bc2d4965bd"> | |
<dmn:requiredDecision href="#_396b3956-6f6f-47f7-9ca3-fa810052e263"/> | |
</dmn:informationRequirement> | |
<dmn:literalExpression id="_b2abb2ea-f96a-4228-810c-37aeaa31d7df" typeRef="tPercent"> | |
<dmn:text>Housing expense/Monthly income * 100</dmn:text> | |
</dmn:literalExpression> | |
</dmn:decision> | |
<dmn:decision id="_396b3956-6f6f-47f7-9ca3-fa810052e263" name="Housing expense"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_83563f7c-1360-4592-aecb-4749225998cf" name="Housing expense" typeRef="tPositiveNumber"/> | |
<dmn:informationRequirement id="_3be9fe5e-3e0f-47cb-bb08-1a830d3e2755"> | |
<dmn:requiredDecision href="#_3b390d3a-bf40-434a-81ae-3ccb61f065c2"/> | |
</dmn:informationRequirement> | |
<dmn:informationRequirement id="_0520c341-5302-44a1-b8e7-6dc1d2c6f32b"> | |
<dmn:requiredDecision href="#_b477f8d7-3e7a-4ef0-9915-ac377440fd4d"/> | |
</dmn:informationRequirement> | |
<dmn:literalExpression id="_3fa69f83-2f55-4a3f-b968-6fa84ec67fbe" typeRef="tPositiveNumber"> | |
<dmn:text>Loan payment + Tax and insurance payment</dmn:text> | |
</dmn:literalExpression> | |
</dmn:decision> | |
<dmn:decision id="_3b390d3a-bf40-434a-81ae-3ccb61f065c2" name="Tax and insurance payment"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_f0769c9a-03f6-4be3-82ca-c9f6d09e8fcc" name="Tax and insurance payment" typeRef="tPositiveNumber"/> | |
<dmn:informationRequirement id="_8b71f661-3178-4a13-a9df-b195276685dd"> | |
<dmn:requiredInput href="#_cbde6c2a-f037-450d-b5cd-f08b62867b60"/> | |
</dmn:informationRequirement> | |
<dmn:literalExpression id="_1788abe7-f38d-4247-88da-a1c6863ad1f7" typeRef="tPositiveNumber"> | |
<dmn:text>(.0125 * Purchase price)/12 + 3.50*(Purchase price/1000)/12 </dmn:text> | |
</dmn:literalExpression> | |
</dmn:decision> | |
<dmn:decision id="_b477f8d7-3e7a-4ef0-9915-ac377440fd4d" name="Loan payment"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_66b19083-3078-4897-a053-94ea80244f70" name="Loan payment" typeRef="tPositiveNumber"/> | |
<dmn:informationRequirement id="_cf1b52bc-0873-441b-9abf-c9e0730a138e"> | |
<dmn:requiredInput href="#_456a0d6e-7b84-4319-9479-0b114ea55c15"/> | |
</dmn:informationRequirement> | |
<dmn:informationRequirement id="_a25f0fd1-1dab-4e5a-835b-b1781a90ff33"> | |
<dmn:requiredDecision href="#_34328bd2-27b6-4ff7-84cc-bb24633de653"/> | |
</dmn:informationRequirement> | |
<dmn:knowledgeRequirement id="_3648cc72-ade5-43d0-a41b-090cdc700915"> | |
<dmn:requiredKnowledge href="#_fd2e4d19-afaa-4021-8a8a-8de25eb1da9e"/> | |
</dmn:knowledgeRequirement> | |
<dmn:invocation id="_74d93387-2287-4e48-8971-02bdc84d44f0" typeRef="tPositiveNumber"> | |
<dmn:literalExpression id="literal__74d93387-2287-4e48-8971-02bdc84d44f0"> | |
<dmn:text>Loan Amortization Formula</dmn:text> | |
</dmn:literalExpression> | |
<dmn:binding> | |
<dmn:parameter id="_e11083b4-43e4-4ca4-933c-fccad14d15f1" name="p"/> | |
<dmn:literalExpression id="_64b5b5b2-1b03-4188-a850-60a5cf7da46c"> | |
<dmn:text>Loan amount</dmn:text> | |
</dmn:literalExpression> | |
</dmn:binding> | |
<dmn:binding> | |
<dmn:parameter id="_edd14473-3c95-49e3-8a9c-abc06a8605ae" name="r"/> | |
<dmn:literalExpression id="_8ab671f9-69e5-44ac-babf-dbe61705d3f1"> | |
<dmn:text>Loan rate pct/100</dmn:text> | |
</dmn:literalExpression> | |
</dmn:binding> | |
<dmn:binding> | |
<dmn:parameter id="_4e6ce669-e842-4976-ae51-95c8bdf92550" name="n"/> | |
<dmn:literalExpression id="_0197a370-b018-47ea-9eef-c12f91e0e7a5"> | |
<dmn:text>360</dmn:text> | |
</dmn:literalExpression> | |
</dmn:binding> | |
</dmn:invocation> | |
</dmn:decision> | |
<dmn:decision id="_34328bd2-27b6-4ff7-84cc-bb24633de653" name="Loan amount"> | |
<dmn:extensionElements/> | |
<dmn:variable id="_893049c8-ef47-4053-a474-a12fe7a39953" name="Loan amount" typeRef="tPositiveNumber"/> | |
<dmn:informationRequirement id="_a2eac261-4563-4051-9c5a-e15833821d05"> | |
<dmn:requiredInput href="#_d0b94dfd-02ff-43fc-9b01-972455c7607f"/> | |
</dmn:informationRequirement> | |
<dmn:informationRequirement id="_15d36133-c86d-43d8-9eea-9b4accbb0388"> | |
<dmn:requiredInput href="#_cbde6c2a-f037-450d-b5cd-f08b62867b60"/> | |
</dmn:informationRequirement> | |
<dmn:literalExpression id="_7bc403d0-514b-4247-974d-191703764f62" typeRef="tPositiveNumber"> | |
<dmn:text>Purchase price-Down payment</dmn:text> | |
</dmn:literalExpression> | |
</dmn:decision> | |
<dmn:businessKnowledgeModel id="_fd2e4d19-afaa-4021-8a8a-8de25eb1da9e" name="Loan Amortization Formula"> | |
<dmn:description><p>This is the standard loan amortization formula assuming monthly payments. Parameter <em><strong>p</strong></em> is the loan principal (amount). Parameter <em><strong>r</strong></em> is the annual loan rate as a decimal (not percent). Parameter <strong><em>n</em></strong> is the number of months in the term of the loan.&nbsp;</p></dmn:description> | |
<dmn:extensionElements/> | |
<dmn:variable id="_88b6bb33-a7e0-499c-855d-920ce212bf3b" name="Loan Amortization Formula" typeRef="number"/> | |
<dmn:encapsulatedLogic id="_e3dcca4f-9729-4acc-a60d-2f65ad47dc85" typeRef="number" kind="FEEL"> | |
<dmn:formalParameter id="_46bca521-6181-4245-a7b3-6b31c34945a2" name="p" typeRef="number"/> | |
<dmn:formalParameter id="_d7aa3ab2-239e-4ff0-8c15-6fa8eaee5a60" name="r" typeRef="number"/> | |
<dmn:formalParameter id="_47bdcca3-c16a-4e26-a516-6e7ed8e20cad" name="n" typeRef="number"/> | |
<dmn:literalExpression id="_400df653-be34-4f75-bfa8-80d12dcc47f8" typeRef="number"> | |
<dmn:text>(p*r/12) / (1-(1+r/12)**-n)</dmn:text> | |
</dmn:literalExpression> | |
</dmn:encapsulatedLogic> | |
</dmn:businessKnowledgeModel> | |
<dmndi:DMNDI> | |
<dmndi:DMNDiagram> | |
<di:extension> | |
<kie:ComponentsWidthsExtension> | |
<kie:ComponentWidths dmnElementRef="_b72c1fb9-e26f-4372-99a8-2229e1c4bfdb"> | |
<kie:width>50</kie:width> | |
<kie:width>141</kie:width> | |
<kie:width>200</kie:width> | |
<kie:width>236</kie:width> | |
<kie:width>100</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_2077a564-d184-4f1b-8cea-478f8a04d2c5"> | |
<kie:width>50</kie:width> | |
<kie:width>100</kie:width> | |
<kie:width>168</kie:width> | |
<kie:width>100</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_b2abb2ea-f96a-4228-810c-37aeaa31d7df"> | |
<kie:width>300</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_3fa69f83-2f55-4a3f-b968-6fa84ec67fbe"> | |
<kie:width>395</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_1788abe7-f38d-4247-88da-a1c6863ad1f7"> | |
<kie:width>549</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_74d93387-2287-4e48-8971-02bdc84d44f0"> | |
<kie:width>50</kie:width> | |
<kie:width>100</kie:width> | |
<kie:width>214</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="literal__74d93387-2287-4e48-8971-02bdc84d44f0"/> | |
<kie:ComponentWidths dmnElementRef="_64b5b5b2-1b03-4188-a850-60a5cf7da46c"> | |
<kie:width>214</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_8ab671f9-69e5-44ac-babf-dbe61705d3f1"> | |
<kie:width>214</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_0197a370-b018-47ea-9eef-c12f91e0e7a5"> | |
<kie:width>214</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_7bc403d0-514b-4247-974d-191703764f62"> | |
<kie:width>300</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_400df653-be34-4f75-bfa8-80d12dcc47f8"> | |
<kie:width>257</kie:width> | |
</kie:ComponentWidths> | |
<kie:ComponentWidths dmnElementRef="_e3dcca4f-9729-4acc-a60d-2f65ad47dc85"> | |
<kie:width>50</kie:width> | |
<kie:width>257</kie:width> | |
</kie:ComponentWidths> | |
</kie:ComponentsWidthsExtension> | |
</di:extension> | |
<dmndi:DMNShape id="dmnshape-_5b23520d-686c-458d-b28d-fd9d9ac3d18a" dmnElementRef="_5b23520d-686c-458d-b28d-fd9d9ac3d18a" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="51" green="102" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="261.5" y="24" width="153" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_ed4486d8-fcf3-4236-9b52-ea9864b40211" dmnElementRef="_ed4486d8-fcf3-4236-9b52-ea9864b40211" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="159.2725261005324" y="156.99999589789414" width="135.48234176635742" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_456a0d6e-7b84-4319-9479-0b114ea55c15" dmnElementRef="_456a0d6e-7b84-4319-9479-0b114ea55c15" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="674.7588114866802" y="630.9999670263852" width="135.48234176635742" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_d0b94dfd-02ff-43fc-9b01-972455c7607f" dmnElementRef="_d0b94dfd-02ff-43fc-9b01-972455c7607f" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="775.7588291168212" y="784.7534124882995" width="135.48234176635754" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_05337324-f934-4474-86d9-a73a1995076c" dmnElementRef="_05337324-f934-4474-86d9-a73a1995076c" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="674.7588291168213" y="345" width="135.48234176635742" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_cbde6c2a-f037-450d-b5cd-f08b62867b60" dmnElementRef="_cbde6c2a-f037-450d-b5cd-f08b62867b60" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="1000.7588291168213" y="784.7534124882995" width="135.48234176635742" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_57f978a5-37ef-4319-9bf9-cd027f1532e2" dmnElementRef="_57f978a5-37ef-4319-9bf9-cd027f1532e2" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="51" green="102" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="404.99314889533815" y="156.99999589789414" width="153.00000000000006" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_87e05c21-6181-471b-a2f6-bba2e1bb59a9" dmnElementRef="_87e05c21-6181-471b-a2f6-bba2e1bb59a9" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="624" y="19.021320343017578" width="100" height="69.95735931396484"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_fc2945a3-c5f2-4927-a41d-e5ef36098e78" dmnElementRef="_fc2945a3-c5f2-4927-a41d-e5ef36098e78" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="153" green="204" blue="0"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="721" y="157" width="153" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_396b3956-6f6f-47f7-9ca3-fa810052e263" dmnElementRef="_396b3956-6f6f-47f7-9ca3-fa810052e263" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="153" green="204" blue="0"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="852" y="345" width="153" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_3b390d3a-bf40-434a-81ae-3ccb61f065c2" dmnElementRef="_3b390d3a-bf40-434a-81ae-3ccb61f065c2" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="153" green="204" blue="0"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="992" y="467" width="153" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_b477f8d7-3e7a-4ef0-9915-ac377440fd4d" dmnElementRef="_b477f8d7-3e7a-4ef0-9915-ac377440fd4d" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="51" green="102" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="767" y="467" width="153" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_34328bd2-27b6-4ff7-84cc-bb24633de653" dmnElementRef="_34328bd2-27b6-4ff7-84cc-bb24633de653" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="51" green="102" blue="255"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="860.7588066268605" y="630.9999835131924" width="135.48234176635742" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNShape id="dmnshape-_fd2e4d19-afaa-4021-8a8a-8de25eb1da9e" dmnElementRef="_fd2e4d19-afaa-4021-8a8a-8de25eb1da9e" isCollapsed="false"> | |
<dmndi:DMNStyle> | |
<dmndi:FillColor red="255" green="255" blue="0"/> | |
<dmndi:StrokeColor red="0" green="0" blue="0"/> | |
<dmndi:FontColor red="0" green="0" blue="0"/> | |
</dmndi:DMNStyle> | |
<dc:Bounds x="510" y="467" width="153" height="60"/> | |
<dmndi:DMNLabel/> | |
</dmndi:DMNShape> | |
<dmndi:DMNEdge id="dmnedge-_24ed896a-da0d-4603-a891-bc5e19794f36" dmnElementRef="_24ed896a-da0d-4603-a891-bc5e19794f36"> | |
<di:waypoint x="481.4931488953382" y="156.99999589789414"/> | |
<di:waypoint x="338" y="84"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_1401a8b3-cf3f-4038-8133-1ced7e78866a" dmnElementRef="_1401a8b3-cf3f-4038-8133-1ced7e78866a"> | |
<di:waypoint x="237.01049836005387" y="156.99999589789414"/> | |
<di:waypoint x="288" y="84"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_d88a25a5-edb5-4290-8390-0e333da4a5c4" dmnElementRef="_d88a25a5-edb5-4290-8390-0e333da4a5c4"> | |
<di:waypoint x="721" y="187"/> | |
<di:waypoint x="557.9931488953382" y="186.99999589789414"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_382242b5-6817-4a6c-8168-016d65f84407" dmnElementRef="_382242b5-6817-4a6c-8168-016d65f84407"> | |
<di:waypoint x="414.5" y="54"/> | |
<di:waypoint x="624" y="53.42132034301758"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_32767a27-9517-4cac-a449-991da0caeb1f" dmnElementRef="_32767a27-9517-4cac-a449-991da0caeb1f"> | |
<di:waypoint x="674.9968013763428" y="375"/> | |
<di:waypoint x="767.5" y="217"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_a2d7154f-85e3-44ff-a342-b9bc2d4965bd" dmnElementRef="_a2d7154f-85e3-44ff-a342-b9bc2d4965bd"> | |
<di:waypoint x="918.5" y="345"/> | |
<di:waypoint x="817.5" y="217"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_3be9fe5e-3e0f-47cb-bb08-1a830d3e2755" dmnElementRef="_3be9fe5e-3e0f-47cb-bb08-1a830d3e2755"> | |
<di:waypoint x="1018.5" y="467"/> | |
<di:waypoint x="938.5" y="405"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_0520c341-5302-44a1-b8e7-6dc1d2c6f32b" dmnElementRef="_0520c341-5302-44a1-b8e7-6dc1d2c6f32b"> | |
<di:waypoint x="843.5" y="467"/> | |
<di:waypoint x="928.5" y="405"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_8b71f661-3178-4a13-a9df-b195276685dd" dmnElementRef="_8b71f661-3178-4a13-a9df-b195276685dd"> | |
<di:waypoint x="1068.4968013763428" y="784.7534124882995"/> | |
<di:waypoint x="1068.5" y="527"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_cf1b52bc-0873-441b-9abf-c9e0730a138e" dmnElementRef="_cf1b52bc-0873-441b-9abf-c9e0730a138e"> | |
<di:waypoint x="742.4967837462017" y="630.9999670263852"/> | |
<di:waypoint x="883.5" y="527"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_a25f0fd1-1dab-4e5a-835b-b1781a90ff33" dmnElementRef="_a25f0fd1-1dab-4e5a-835b-b1781a90ff33"> | |
<di:waypoint x="996.2411483932179" y="660.9999835131924"/> | |
<di:waypoint x="767" y="497"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_3648cc72-ade5-43d0-a41b-090cdc700915" dmnElementRef="_3648cc72-ade5-43d0-a41b-090cdc700915"> | |
<di:waypoint x="511" y="497"/> | |
<di:waypoint x="920" y="497"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_a2eac261-4563-4051-9c5a-e15833821d05" dmnElementRef="_a2eac261-4563-4051-9c5a-e15833821d05"> | |
<di:waypoint x="853.4968013763428" y="784.7534124882995"/> | |
<di:waypoint x="946.2100875448572" y="690.9999835131924"/> | |
</dmndi:DMNEdge> | |
<dmndi:DMNEdge id="dmnedge-_15d36133-c86d-43d8-9eea-9b4accbb0388" dmnElementRef="_15d36133-c86d-43d8-9eea-9b4accbb0388"> | |
<di:waypoint x="1068.4968013763428" y="784.7534124882995"/> | |
<di:waypoint x="955.0651425622661" y="690.9999835131924"/> | |
</dmndi:DMNEdge> | |
</dmndi:DMNDiagram> | |
</dmndi:DMNDI> | |
</dmn:definitions> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment