Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated pet-deposit.json #70

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
239 changes: 239 additions & 0 deletions rules/general-supplements/pet-deposit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
{
"nodes": [
{
"type": "inputNode",
"id": "358e427e-ba5e-4811-b851-fb41a73d34ad",
"name": "request",
"position": {
"x": -20,
"y": 205
},
"content": {
"fields": [
{
"id": 81,
"field": "isEligibleForAssistance",
"name": "Family unit is eligible for IA, DA, or HA",
"description": "Family unit is eligible for income assistance, disability assistance or hardship assistance.",
"dataType": "true-false",
"childFields": []
},
{
"id": 110,
"field": "isTenacyValid",
"name": "Tenancy is a valid tenancy under the Residential Tenancy Act",
"description": null,
"dataType": "true-false",
"childFields": []
},
{
"id": 111,
"field": "totalRentAmount",
"name": "Total amount of rent, including subsidies and portion of the rent payable by roommates/co-tenants",
"description": null,
"dataType": "number-input",
"childFields": []
},
{
"id": 109,
"field": "isDepositNecessary",
"name": "Family unit requires the deposit in order to obtain/retain accommodation?",
"description": null,
"dataType": "true-false",
"childFields": []
},
{
"id": 120,
"field": "hasRepaymentAgreement",
"name": "Has repayment agreement or promise to pay",
"description": null,
"dataType": "true-false",
"childFields": []
},
{
"id": 138,
"field": "requestedAmount",
"name": "Requested amount of supplement by client if less than full eligible amount of supplement. ",
"description": "This input exists in ICM/Siebel as BENEFIT_AMT, in the S_BNFT_PLAN_ITM table, under the PUB Case Benefit Plan Line Item Business Component. ",
"dataType": "number-input",
"childFields": []
}
]
}
},
{
"type": "outputNode",
"id": "a6a646e9-45a2-4aeb-857d-7da154f32db4",
"name": "response",
"position": {
"x": 765,
"y": 205
},
"content": {
"fields": [
{
"field": "isEligible",
"name": "Is Eligible",
"id": 28,
"description": "General \"Is Eligible\" statement used in conjunction with supplement building to describe eligibility.",
"dataType": "true-false",
"childFields": []
},
{
"field": "supplementAmount",
"name": "Supplement Amount",
"id": 58,
"description": "General \"Supplement Amount\" field to define total supplement amount output for a specific supplement.",
"dataType": "number-input",
"validationCriteria": "0",
"validationType": ">=",
"childFields": []
}
]
}
},
{
"type": "decisionTableNode",
"content": {
"hitPolicy": "first",
"inputs": [
{
"id": "caa6534f-8b32-4cda-b4e7-c92df196b5b7",
"field": "isEligibleForAssistance",
"name": "Family unit is eligible for IA, DA, or HA"
},
{
"id": "b9555d9f-0873-4862-a35b-19693e9e2dba",
"field": "isDepositNecessary",
"name": "Family unit requires the security deposit in order to obtain/retain accommodation?"
},
{
"id": "13790d55-bc2d-4f2b-bb5a-bf91ae22807c",
"field": "isTenacyValid",
"name": "Tenancy is a valid tenancy under the Residential Tenancy Act"
},
{
"id": "21818a11-72a9-478c-8a36-4a88b1e23149",
"field": "totalRentAmount",
"name": "Total amount of rent, including subsidies and portion of the rent payable by roommates/co-tenants"
},
{
"id": "79306118-ee92-46c2-ad6f-1f0b2e48ebd5",
"field": "hasRepaymentAgreement",
"name": "Has repayment agreement or promise to pay"
},
{
"id": "67d3311b-905e-4a6c-a90e-4f98a8c1250d",
"field": "requestedAmount",
"name": "Requested amount of supplement by client if less than full eligible amount of supplement. "
}
],
"outputs": [
{
"id": "91b8c950-b27a-4471-8ab5-c836d12454fb",
"name": "isEligible",
"field": "isEligible"
}
],
"rules": [
{
"_id": "daed1342-9f69-4021-aa10-8a9c23818497",
"caa6534f-8b32-4cda-b4e7-c92df196b5b7": "true",
"b9555d9f-0873-4862-a35b-19693e9e2dba": "true",
"13790d55-bc2d-4f2b-bb5a-bf91ae22807c": "true",
"21818a11-72a9-478c-8a36-4a88b1e23149": "",
"79306118-ee92-46c2-ad6f-1f0b2e48ebd5": "true",
"67d3311b-905e-4a6c-a90e-4f98a8c1250d": "",
"91b8c950-b27a-4471-8ab5-c836d12454fb": "true"
},
{
"_id": "bc92a8ab-07fb-4d3e-9ac8-c84036a6f49e",
"caa6534f-8b32-4cda-b4e7-c92df196b5b7": "true",
"b9555d9f-0873-4862-a35b-19693e9e2dba": "false",
"13790d55-bc2d-4f2b-bb5a-bf91ae22807c": "true",
"21818a11-72a9-478c-8a36-4a88b1e23149": "",
"79306118-ee92-46c2-ad6f-1f0b2e48ebd5": "",
"67d3311b-905e-4a6c-a90e-4f98a8c1250d": "",
"91b8c950-b27a-4471-8ab5-c836d12454fb": "false"
},
{
"_id": "1866e17f-c260-4cd1-a9ec-0923a9e8bd72",
"caa6534f-8b32-4cda-b4e7-c92df196b5b7": "true",
"b9555d9f-0873-4862-a35b-19693e9e2dba": "true",
"13790d55-bc2d-4f2b-bb5a-bf91ae22807c": "false",
"21818a11-72a9-478c-8a36-4a88b1e23149": "",
"79306118-ee92-46c2-ad6f-1f0b2e48ebd5": "",
"67d3311b-905e-4a6c-a90e-4f98a8c1250d": "",
"91b8c950-b27a-4471-8ab5-c836d12454fb": "false"
},
{
"_id": "a7ca19f8-bfd1-4341-989e-22cf5acea253",
"caa6534f-8b32-4cda-b4e7-c92df196b5b7": "false",
"b9555d9f-0873-4862-a35b-19693e9e2dba": "true",
"13790d55-bc2d-4f2b-bb5a-bf91ae22807c": "true",
"21818a11-72a9-478c-8a36-4a88b1e23149": "",
"79306118-ee92-46c2-ad6f-1f0b2e48ebd5": "",
"67d3311b-905e-4a6c-a90e-4f98a8c1250d": "",
"91b8c950-b27a-4471-8ab5-c836d12454fb": "false"
}
]
},
"id": "82b27ab1-7901-4fe5-a3a5-f203f6b715de",
"name": "Eligibility",
"position": {
"x": 400,
"y": 200
}
},
{
"type": "expressionNode",
"content": {
"expressions": [
{
"id": "226094df-3b74-4918-a33e-bce434c544a1",
"key": "supplementAmount",
"value": "isEligible == true and totalRentAmount > 0 ? (requestedAmount < totalRentAmount/2 ? requestedAmount : totalRentAmount/2) : 0"
}
]
},
"id": "29e9c534-ebb4-420b-ab5e-4071c44c6798",
"name": "Supplement Calculation",
"position": {
"x": 405,
"y": 375
}
}
],
"edges": [
{
"id": "2d1c0e05-b2b4-4bfb-8e3e-30e35ffdf091",
"sourceId": "358e427e-ba5e-4811-b851-fb41a73d34ad",
"type": "edge",
"targetId": "82b27ab1-7901-4fe5-a3a5-f203f6b715de"
},
{
"id": "0bb07ce7-51c3-46a3-b709-1ddc2c4640a6",
"sourceId": "82b27ab1-7901-4fe5-a3a5-f203f6b715de",
"type": "edge",
"targetId": "a6a646e9-45a2-4aeb-857d-7da154f32db4"
},
{
"id": "068ebee6-267a-46b2-90b3-296c2dc85267",
"sourceId": "82b27ab1-7901-4fe5-a3a5-f203f6b715de",
"type": "edge",
"targetId": "29e9c534-ebb4-420b-ab5e-4071c44c6798"
},
{
"id": "6cd3e40f-93c7-4a06-91cd-fddc426c62fc",
"sourceId": "358e427e-ba5e-4811-b851-fb41a73d34ad",
"type": "edge",
"targetId": "29e9c534-ebb4-420b-ab5e-4071c44c6798"
},
{
"id": "18773d86-93bf-41c8-8ced-54d5ad9cbfc6",
"sourceId": "29e9c534-ebb4-420b-ab5e-4071c44c6798",
"type": "edge",
"targetId": "a6a646e9-45a2-4aeb-857d-7da154f32db4"
}
]
}