Skip to content

Commit

Permalink
Fix variable.typeRef for BKMs (#385)
Browse files Browse the repository at this point in the history
* Fix variable.typeRef for BKMs

* Add removed variable.typeRef to encapsulatedLogic.typeRef
  • Loading branch information
opatrascoiu authored Feb 12, 2021
1 parent 5fba2a9 commit e38bd2a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
</decision>

<businessKnowledgeModel name="bkm_004" id="_bkm_004">
<variable typeRef="tNumberList" name="bkm_004"/>
<encapsulatedLogic>
<variable name="bkm_004"/>
<encapsulatedLogic typeRef="tNumberList">
<formalParameter name="arg"/>
<literalExpression>
<text>arg</text>
Expand All @@ -157,8 +157,8 @@
</businessKnowledgeModel>

<businessKnowledgeModel name="bkm_005" id="_bkm_005">
<variable typeRef="number" name="bkm_005"/>
<encapsulatedLogic>
<variable name="bkm_005"/>
<encapsulatedLogic typeRef="number">
<formalParameter name="arg"/>
<literalExpression>
<text>[arg]</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</itemComponent>
</itemDefinition>
<businessKnowledgeModel id="_32543811-b499-4608-b784-6c6f294b1c58" name="Say Hello">
<variable name="Say Hello" id="_a8eb10e1-30e6-40d8-a564-a868f4e0af34" typeRef="string"/>
<variable name="Say Hello" id="_a8eb10e1-30e6-40d8-a564-a868f4e0af34"/>
<encapsulatedLogic id="_acbb96c9-34a3-4628-8179-dfc5f583e695" kind="FEEL" typeRef="string" triso:expressionId="_39e3582e-df8d-44a4-8309-2d94bf4c0406">
<formalParameter name="Person" typeRef="tPerson" id="_4a626f74-2ecc-4759-b76a-04baec6b795d"/>
<literalExpression id="_c173a894-3719-4d2f-a365-25850e217310">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@
</semantic:decision>
<semantic:businessKnowledgeModel id="_dc2ca64d-2044-4806-9d0e-e705b3b14447" name="Eligibility rules">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Eligibility rules&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic&amp;nbsp;defines a complete, priority-ordered single hit decision table&amp;nbsp;&lt;/span&gt;deriving Eligibility from Pre-Bureau Risk Category, Pre-Bureau Affordability and Age.&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Eligibility rules" id="_fe2d2049-704b-4a88-88be-3d1a56c3d376" typeRef="tEligibility"/>
<semantic:encapsulatedLogic>
<semantic:variable name="Eligibility rules" id="_fe2d2049-704b-4a88-88be-3d1a56c3d376"/>
<semantic:encapsulatedLogic typeRef="tEligibility">
<semantic:formalParameter name="Pre-Bureau Risk Category" typeRef="tRiskCategory"/>
<semantic:formalParameter name="Pre-Bureau Affordability" typeRef="boolean"/>
<semantic:formalParameter name="Age" typeRef="number"/>
Expand Down Expand Up @@ -342,8 +342,8 @@
<semantic:knowledgeSource id="_a5f9b126-7853-4037-9e23-3dd7e93c4032" name="Product specification"/>
<semantic:businessKnowledgeModel id="_536d7a39-87a6-4651-b743-6ee03e16e535" name="Routing rules">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Routing Rules&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic defines a complete, priority-ordered single hit decision table&amp;nbsp;&lt;/span&gt;deriving Routing from Post-Bureau Risk Category, Post-Bureau Affordability, Bankrupt and Credit Score.&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Routing rules" id="_08f4f63e-54e4-4b19-b0d2-08aeed21605c" typeRef="tRouting"/>
<semantic:encapsulatedLogic>
<semantic:variable name="Routing rules" id="_08f4f63e-54e4-4b19-b0d2-08aeed21605c"/>
<semantic:encapsulatedLogic typeRef="tRouting">
<semantic:formalParameter name="Post-bureau risk category" typeRef="tRiskCategory"/>
<semantic:formalParameter name="Post-bureau affordability" typeRef="boolean"/>
<semantic:formalParameter name="Bankrupt" typeRef="boolean"/>
Expand Down Expand Up @@ -518,8 +518,8 @@
</semantic:decision>
<semantic:businessKnowledgeModel id="_a654be71-b54d-4d6e-90f0-ae505125e9a6" name="Bureau call type table">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Bureau call type table&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic defines a complete, unique-hit decision table deriving&amp;nbsp;&lt;/span&gt;Bureau Call Type from Pre-Bureau Risk Category.&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Bureau call type table" id="_86c4fcfd-1e5a-41ec-9b62-966cf0eed2d3" typeRef="tBureauCallType"/>
<semantic:encapsulatedLogic>
<semantic:variable name="Bureau call type table" id="_86c4fcfd-1e5a-41ec-9b62-966cf0eed2d3"/>
<semantic:encapsulatedLogic typeRef="tBureauCallType">
<semantic:formalParameter name="Pre-Bureau Risk Category" typeRef="tRiskCategory"/>
<semantic:decisionTable id="_ebd84888-6db0-4b91-94f4-b3a228bb2901" hitPolicy="UNIQUE" outputLabel="Bureau call type table">
<semantic:input id="_92e35546-27e5-43a5-b8e6-85a692f42eb8">
Expand Down Expand Up @@ -569,8 +569,8 @@
<semantic:businessKnowledgeModel id="_b982a42a-0b62-47fa-8911-6c9d1145d982" name="Credit contingency factor table">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;/span&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Credit contingency factor table&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;&lt;span style="font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;decision&lt;/span&gt; logic defines a complete, unique-hit decision table&amp;nbsp;&lt;/span&gt;deriving Credit contingency factor from Risk Category.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</semantic:description>
<semantic:variable name="Credit contingency factor table" id="_40c0f987-7b90-4c3e-9dcd-411e56f66c92" typeRef="number"/>
<semantic:encapsulatedLogic>
<semantic:variable name="Credit contingency factor table" id="_40c0f987-7b90-4c3e-9dcd-411e56f66c92"/>
<semantic:encapsulatedLogic typeRef="number">
<semantic:formalParameter name="Risk Category" typeRef="tRiskCategory"/>
<semantic:decisionTable id="_ad7c587e-64cc-47ec-adc4-515b586f9474" hitPolicy="UNIQUE" outputLabel="Credit contingency factor table">
<semantic:input id="_2b8fecfd-e00f-4d4b-acf3-660ca3560ca0">
Expand Down Expand Up @@ -615,8 +615,8 @@
<semantic:knowledgeSource id="_18d836e7-6d61-490c-b9a8-be3ce0c60c1e" name="Affordability spreadsheet"/>
<semantic:businessKnowledgeModel id="_ee893e8d-f393-4e2c-b871-611a9cd30bf5" name="Affordability calculation">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Affordability calculation&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic defines a boxed function deriving Affordability from&amp;nbsp;&lt;/span&gt;Monthly Income, Monthly Repayments, Monthly Expenses and Required Monthly Installment. One step in this calculation derives Credit contingency factor by invoking the Credit contingency factor table business&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Affordability calculation" id="_80af1aa7-e29c-47fc-9cce-1959a3e1e717" typeRef="boolean"/>
<semantic:encapsulatedLogic id="_b3f131dd-5572-4d63-a693-05af46940267" kind="FEEL">
<semantic:variable name="Affordability calculation" id="_80af1aa7-e29c-47fc-9cce-1959a3e1e717"/>
<semantic:encapsulatedLogic id="_b3f131dd-5572-4d63-a693-05af46940267" kind="FEEL" typeRef="boolean">
<semantic:formalParameter name="Monthly Income" typeRef="number" id="_f916b091-cd6d-44cb-b32b-cc83cc27e333"/>
<semantic:formalParameter name="Monthly Repayments" typeRef="number" id="_d68b6438-cba5-4c02-a708-bce0d2762d35"/>
<semantic:formalParameter name="Monthly Expenses" typeRef="number" id="_5fd5609d-89ce-463e-a882-6827921edf54"/>
Expand Down Expand Up @@ -811,8 +811,8 @@
</semantic:inputData>
<semantic:businessKnowledgeModel id="_1c72ed95-ec72-47b4-8639-5ed14ccb77df" name="Post-bureau risk category table">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Post-bureau risk category table&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic defines a complete, unique-hit decision table&amp;nbsp;&lt;/span&gt;deriving Post-Bureau Risk Category from Existing Customer, Application Risk Score and Credit Score.&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Post-bureau risk category table" id="_689c96f3-6dd3-4c74-9a8f-721a966eb1af" typeRef="tRiskCategory"/>
<semantic:encapsulatedLogic>
<semantic:variable name="Post-bureau risk category table" id="_689c96f3-6dd3-4c74-9a8f-721a966eb1af"/>
<semantic:encapsulatedLogic typeRef="tRiskCategory">
<semantic:formalParameter name="Existing Customer" typeRef="boolean"/>
<semantic:formalParameter name="Application Risk Score" typeRef="number"/>
<semantic:formalParameter name="Credit Score" typeRef="number"/>
Expand Down Expand Up @@ -1057,8 +1057,8 @@
</semantic:decision>
<semantic:businessKnowledgeModel id="_51cc9510-3bfa-4e5a-a119-9bf83efdd266" name="Pre-bureau risk category table">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Pre-bureau risk category table&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic defines a complete, unique-hit decision table&amp;nbsp;&lt;/span&gt;deriving Pre-bureau risk category from Existing Customer and Application Risk Score.&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Pre-bureau risk category table" id="_cfb1bb8c-ad27-42e2-b52a-50eadea198a6" typeRef="tRiskCategory"/>
<semantic:encapsulatedLogic>
<semantic:variable name="Pre-bureau risk category table" id="_cfb1bb8c-ad27-42e2-b52a-50eadea198a6"/>
<semantic:encapsulatedLogic typeRef="tRiskCategory">
<semantic:formalParameter name="Existing Customer" typeRef="boolean"/>
<semantic:formalParameter name="Application Risk Score" typeRef="number"/>
<semantic:decisionTable id="_3f0a3259-2862-44d3-baff-5bd71f4dd24f" hitPolicy="UNIQUE" outputLabel="Pre-bureau risk category table">
Expand Down Expand Up @@ -1207,8 +1207,8 @@
<semantic:knowledgeSource id="_821a6840-e910-418f-809e-4c7d60b0b21a" name="Analytics"/>
<semantic:businessKnowledgeModel id="_e9e07f04-0ff2-40c4-bd14-e5f06a91f942" name="Application risk score model">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Application risk score model&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic&amp;nbsp;defines a complete, no-order multiple-hit table&amp;nbsp;&lt;/span&gt;with aggregation, deriving Application risk score from Age, Marital Status and Employment Status, as the sum of the Partial scores of all matching rows (this is therefore a predictive scorecard represented as a decision table).&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Application risk score model" id="_645f4911-6a95-4dbd-8efb-13fac8154fa2" typeRef="number"/>
<semantic:encapsulatedLogic>
<semantic:variable name="Application risk score model" id="_645f4911-6a95-4dbd-8efb-13fac8154fa2"/>
<semantic:encapsulatedLogic typeRef="number">
<semantic:formalParameter name="Age" typeRef="number"/>
<semantic:formalParameter name="Marital Status" typeRef="string"/>
<semantic:formalParameter name="Employment Status" typeRef="string"/>
Expand Down Expand Up @@ -1445,8 +1445,8 @@
</semantic:inputData>
<semantic:businessKnowledgeModel id="_7235d875-2426-4869-b6df-92ca06ae80c5" name="Installment calculation">
<semantic:description>&lt;p&gt;&lt;span style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"&gt;&lt;span lang="JA"&gt;The&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;span lang="JA"&gt;Installment calculation&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span lang="JA"&gt;decision logic&amp;nbsp;defines a boxed function deriving monthly installment&amp;nbsp;&lt;/span&gt;from Product Type, Rate, Term and Amount.&lt;/span&gt;&lt;/p&gt;</semantic:description>
<semantic:variable name="Installment calculation" id="_c02274e9-a6c8-4498-9d43-eaa33be7a0d9" typeRef="number"/>
<semantic:encapsulatedLogic id="_5362b6d5-9520-4081-809c-ee85881e2dfa" kind="FEEL">
<semantic:variable name="Installment calculation" id="_c02274e9-a6c8-4498-9d43-eaa33be7a0d9"/>
<semantic:encapsulatedLogic id="_5362b6d5-9520-4081-809c-ee85881e2dfa" kind="FEEL" typeRef="number">
<semantic:formalParameter name="Product Type" typeRef="string" id="_f6831cd9-3eab-4399-8d29-42b141fd9968"/>
<semantic:formalParameter name="Rate" typeRef="number" id="_c6f48aeb-b65d-4307-8722-dd44f7335566"/>
<semantic:formalParameter name="Term" typeRef="number" id="_708eb9af-fe19-418c-8547-1647cb50f596"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@
</decision>

<businessKnowledgeModel id="b_PassengerPriority" name="passenger priority">
<variable name="passenger priority" typeRef="boolean"/>
<encapsulatedLogic>
<variable name="passenger priority"/>
<encapsulatedLogic typeRef="boolean">
<formalParameter name="Passenger1" typeRef="tPassenger"/>
<formalParameter name="Passenger2" typeRef="tPassenger"/>
<decisionTable hitPolicy="UNIQUE">
Expand Down Expand Up @@ -240,8 +240,8 @@
</businessKnowledgeModel>

<businessKnowledgeModel id="b_ReassignNextPassenger" name="reassign next passenger">
<variable name="reassign next passenger" typeRef="tPassengerTable"/>
<encapsulatedLogic>
<variable name="reassign next passenger"/>
<encapsulatedLogic typeRef="tPassengerTable">
<formalParameter name="Waiting List" typeRef="tPassengerTable"/>
<formalParameter name="Reassigned Passengers List" typeRef="tPassengerTable"/>
<formalParameter name="Flights" typeRef="tFlightTable"/>
Expand Down

0 comments on commit e38bd2a

Please sign in to comment.