|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<dmn:definitions |
| 3 | + xmlns:dmn="http://www.omg.org/spec/DMN/20180521/MODEL/" |
| 4 | + xmlns="https://kie.apache.org/dmn/_3A7F1C2D-8E4B-4A91-B5C3-2D6F8A1E4C79" |
| 5 | + xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/" |
| 6 | + xmlns:kie="http://www.drools.org/kie/dmn/1.2" |
| 7 | + xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/" |
| 8 | + xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/" |
| 9 | + xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/" |
| 10 | + xmlns:included1="https://kie.apache.org/dmn/_1B91A885-130A-4E0B-A762-E12AA6DD5C79" |
| 11 | + xmlns:included2="https://kie.apache.org/dmn/_C9F91EE8-9F17-4867-9638-912AC7DB68F1" |
| 12 | + id="_1B4C8E3F-7A2D-4B6E-9A1C-5E2D7F3A9B8C" |
| 13 | + name="TenYearTaxAbatement" |
| 14 | + typeLanguage="http://www.omg.org/spec/DMN/20180521/FEEL/" |
| 15 | + namespace="https://kie.apache.org/dmn/_3A7F1C2D-8E4B-4A91-B5C3-2D6F8A1E4C79"> |
| 16 | + <dmn:description>Checks that a property has an active 10-year tax abatement.</dmn:description> |
| 17 | + <dmn:extensionElements/> |
| 18 | + <dmn:import id="_7C2D5F1A-3B8E-4C4D-8B2E-1F5A9C3D7E4B" name="BDT" |
| 19 | + namespace="https://kie.apache.org/dmn/_1B91A885-130A-4E0B-A762-E12AA6DD5C79" |
| 20 | + locationURI="../BDT.dmn" |
| 21 | + importType="http://www.omg.org/spec/DMN/20180521/MODEL/"/> |
| 22 | + <dmn:import id="_4D8F3A2B-9C1E-4D5E-A3F1-6A2E8D4B1C7F" name="Residence" |
| 23 | + namespace="https://kie.apache.org/dmn/_C9F91EE8-9F17-4867-9638-912AC7DB68F1" |
| 24 | + locationURI="Residence.dmn" |
| 25 | + importType="http://www.omg.org/spec/DMN/20180521/MODEL/"/> |
| 26 | + <dmn:itemDefinition id="_9E1A4C7F-2D3B-4E6F-B4A2-7B3F1E9C2D8A" name="tSimpleChecks" isCollection="false"> |
| 27 | + <dmn:itemComponent id="_2F5B8D3A-7E4C-4F7A-C5B3-8C4A2F6E1D9B" name="tenYearTaxAbatement" isCollection="false"> |
| 28 | + <dmn:typeRef>boolean</dmn:typeRef> |
| 29 | + </dmn:itemComponent> |
| 30 | + </dmn:itemDefinition> |
| 31 | + <dmn:itemDefinition id="_5A2C6E1D-8F3B-4A8B-D6C4-9D5B3A7F2E1C" name="tSituation" isCollection="false"> |
| 32 | + <dmn:itemComponent id="_8B3D7F2E-1A4C-4B9C-E7D5-1E6C4B8A3F2D" name="simpleChecks" isCollection="false"> |
| 33 | + <dmn:typeRef>tSimpleChecks</dmn:typeRef> |
| 34 | + </dmn:itemComponent> |
| 35 | + </dmn:itemDefinition> |
| 36 | + <dmn:decisionService id="_3C6E1A4B-4B5D-4CAD-F8E6-2F7D5C9E4A3E" name="TenYearTaxAbatementService"> |
| 37 | + <dmn:extensionElements/> |
| 38 | + <dmn:variable id="_6D9F4B7C-7C6E-4DBE-A9F7-3A8E6D1B5C4F" name="TenYearTaxAbatementService" typeRef="BDT.tCheckResponse"/> |
| 39 | + <dmn:outputDecision href="#_1E2A5C8D-9D7F-4ECF-BAAB-4B9F7E2C6D5A"/> |
| 40 | + <dmn:inputData href="#_BE6EA3B4-4BD4-4C4A-FEEF-8FD4DB6AAB9E"/> |
| 41 | + </dmn:decisionService> |
| 42 | + <dmn:decision id="_1E2A5C8D-9D7F-4ECF-BAAB-4B9F7E2C6D5A" name="checkResult"> |
| 43 | + <dmn:extensionElements/> |
| 44 | + <dmn:variable id="_4F3B6D9E-1EA1-4FD1-CBBC-5CA1AF3D7E6B" name="checkResult" typeRef="boolean"/> |
| 45 | + <dmn:informationRequirement id="_7A4C8E1F-2FB2-4A2E-DCCD-6DB2BF4E8F7C"> |
| 46 | + <dmn:requiredInput href="#_BE6EA3B4-4BD4-4C4A-FEEF-8FD4DB6AAB9E"/> |
| 47 | + </dmn:informationRequirement> |
| 48 | + <dmn:literalExpression id="_AF5D9F2A-3AC3-4B3F-EDDE-7EC3CA5F9A8D"> |
| 49 | + <dmn:text>if situation.simpleChecks != null and situation.simpleChecks.tenYearTaxAbatement != null then |
| 50 | + situation.simpleChecks.tenYearTaxAbatement = true |
| 51 | +else |
| 52 | + null</dmn:text> |
| 53 | + </dmn:literalExpression> |
| 54 | + </dmn:decision> |
| 55 | + <dmn:inputData id="_BE6EA3B4-4BD4-4C4A-FEEF-8FD4DB6AAB9E" name="situation"> |
| 56 | + <dmn:extensionElements/> |
| 57 | + <dmn:variable id="_CF7FB4C5-5CE5-4D5B-AF1A-9AE5EC7BBC1F" name="situation" typeRef="tSituation"/> |
| 58 | + </dmn:inputData> |
| 59 | + <dmndi:DMNDI> |
| 60 | + <dmndi:DMNDiagram id="_D181C5D6-6DF6-4E6C-BA2B-ABF6FD8CCD2A" name="DRG"> |
| 61 | + <di:extension> |
| 62 | + <kie:ComponentsWidthsExtension> |
| 63 | + <kie:ComponentWidths dmnElementRef="_AF5D9F2A-3AC3-4B3F-EDDE-7EC3CA5F9A8D"> |
| 64 | + <kie:width>917</kie:width> |
| 65 | + </kie:ComponentWidths> |
| 66 | + </kie:ComponentsWidthsExtension> |
| 67 | + </di:extension> |
| 68 | + <!-- Decision service: centered around x=310, width=360 to fit "TenYearTaxAbatementService" label --> |
| 69 | + <dmndi:DMNShape id="dmnshape-drg-_3C6E1A4B-4B5D-4CAD-F8E6-2F7D5C9E4A3E" dmnElementRef="_3C6E1A4B-4B5D-4CAD-F8E6-2F7D5C9E4A3E" isCollapsed="false"> |
| 70 | + <dmndi:DMNStyle> |
| 71 | + <dmndi:FillColor red="255" green="255" blue="255"/> |
| 72 | + <dmndi:StrokeColor red="0" green="0" blue="0"/> |
| 73 | + <dmndi:FontColor red="0" green="0" blue="0"/> |
| 74 | + </dmndi:DMNStyle> |
| 75 | + <dc:Bounds x="130" y="106" width="360" height="199"/> |
| 76 | + <dmndi:DMNLabel/> |
| 77 | + <dmndi:DMNDecisionServiceDividerLine> |
| 78 | + <di:waypoint x="130" y="206"/> |
| 79 | + <di:waypoint x="490" y="206"/> |
| 80 | + </dmndi:DMNDecisionServiceDividerLine> |
| 81 | + </dmndi:DMNShape> |
| 82 | + <!-- checkResult decision: centered horizontally in service box --> |
| 83 | + <dmndi:DMNShape id="dmnshape-drg-_1E2A5C8D-9D7F-4ECF-BAAB-4B9F7E2C6D5A" dmnElementRef="_1E2A5C8D-9D7F-4ECF-BAAB-4B9F7E2C6D5A" isCollapsed="false"> |
| 84 | + <dmndi:DMNStyle> |
| 85 | + <dmndi:FillColor red="255" green="255" blue="255"/> |
| 86 | + <dmndi:StrokeColor red="0" green="0" blue="0"/> |
| 87 | + <dmndi:FontColor red="0" green="0" blue="0"/> |
| 88 | + </dmndi:DMNStyle> |
| 89 | + <dc:Bounds x="266" y="147" width="88" height="50"/> |
| 90 | + <dmndi:DMNLabel/> |
| 91 | + </dmndi:DMNShape> |
| 92 | + <!-- situation input: centered below service box (no parameters) --> |
| 93 | + <dmndi:DMNShape id="dmnshape-drg-_BE6EA3B4-4BD4-4C4A-FEEF-8FD4DB6AAB9E" dmnElementRef="_BE6EA3B4-4BD4-4C4A-FEEF-8FD4DB6AAB9E" isCollapsed="false"> |
| 94 | + <dmndi:DMNStyle> |
| 95 | + <dmndi:FillColor red="255" green="255" blue="255"/> |
| 96 | + <dmndi:StrokeColor red="0" green="0" blue="0"/> |
| 97 | + <dmndi:FontColor red="0" green="0" blue="0"/> |
| 98 | + </dmndi:DMNStyle> |
| 99 | + <dc:Bounds x="260" y="336" width="100" height="50"/> |
| 100 | + <dmndi:DMNLabel/> |
| 101 | + </dmndi:DMNShape> |
| 102 | + <!-- Edge: from center of situation to bottom-center of checkResult --> |
| 103 | + <dmndi:DMNEdge id="dmnedge-drg-_7A4C8E1F-2FB2-4A2E-DCCD-6DB2BF4E8F7C-AUTO-TARGET" dmnElementRef="_7A4C8E1F-2FB2-4A2E-DCCD-6DB2BF4E8F7C"> |
| 104 | + <di:waypoint x="310" y="361"/> |
| 105 | + <di:waypoint x="310" y="197"/> |
| 106 | + </dmndi:DMNEdge> |
| 107 | + </dmndi:DMNDiagram> |
| 108 | + </dmndi:DMNDI> |
| 109 | +</dmn:definitions> |
0 commit comments