Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #301 from egovernments/hlm-2953-workflow-fix
Browse files Browse the repository at this point in the history
[hlm-2953]: Added workflow service config for default
  • Loading branch information
jayantp-egov authored Jun 14, 2023
2 parents 53a3b44 + 791ced7 commit 5c171bc
Show file tree
Hide file tree
Showing 5 changed files with 373 additions and 0 deletions.
26 changes: 26 additions & 0 deletions data/default/Workflow/AutoEscalation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"tenantId": "default",
"moduleName": "Workflow",
"AutoEscalation": [
{
"businessService": "NewTL",
"module": "tl-services",
"state": "PENDINGAPPROVAL",
"action": "APPROVE",
"active": "true",
"stateSLA": 2.0,
"businessSLA": null,
"topic" : "tl-auto-escalation"
},
{
"businessService": "PGR",
"module": "pgr-services",
"state": "RESOLVED",
"action": "CLOSERESOLVEDCOMPLAIN",
"active": "true",
"stateSLA": 1.0,
"businessSLA": null,
"topic" : "pgr-auto-escalation"
}
]
}
11 changes: 11 additions & 0 deletions data/default/Workflow/AutoEscalationStatesToIgnore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"tenantId": "default",
"moduleName": "Workflow",
"AutoEscalationStatesToIgnore": [
{
"businessService": "NewTL",
"module": "TL",
"state": ["INITIATED","PENDINGAPPROVAL"]
}
]
}
301 changes: 301 additions & 0 deletions data/default/Workflow/BusinessService.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,301 @@
{
"tenantId": "default",
"moduleName": "Workflow",
"BusinessService": [
{
"tenantId": "default",
"uuid": "2b75575a-f84d-11e8-8eb2-f2801f1b9fd1",
"businessService": "NewTL",
"getUri": "",
"postUri": "",
"states": [
{
"businessServiceId": "NewTL",
"state": "INITIATED",
"applicableNextStates": "APPLIED",
"applicableActions": "INITIATE",
"docUploadRequired": "false",
"UpdateAllowed": "false",
"isTerminateState": "false",
"isStartState": "true",
"uuid": "bf5fd4f4-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fd4f4-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "APPLY",
"nextStateId": "bf5fd8c8-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CITIZEN,TL_CEMP",
"tenantId": "default",
"uuid": "4bd0f10a-f7d3-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "APPLIED",
"applicableNextStates": "Paid,Cancelled,Rejected",
"applicableActions": "Reject,Pay,Cancel,Mark",
"docUploadRequired": "false",
"UpdateAllowed": "true",
"isTerminateState": "false",
"isStartState": "false",
"uuid": "bf5fd8c8-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fd8c8-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "PAY",
"nextStateId": "bf5fdaee-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "SYSTEM_PAYMENT",
"tenantId": "default",
"uuid": "4bd0f2a4-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fd8c8-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "CANCEL",
"nextStateId": "bf5fe0fc-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CLERK",
"tenantId": "default",
"uuid": "4bd0f3ee-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fd8c8-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "REJECT",
"nextStateId": "bf5fe318-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CLERK",
"tenantId": "default",
"uuid": "4bd0f524-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fe444-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "APPROVE",
"nextStateId": "bf5fdfbc-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_APPROVER",
"tenantId": "default",
"uuid": "543f802e-f952-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "PAID",
"applicableNextStates": "Intermediate",
"applicableActions": "Approve,Cancel,Reject,Mark",
"docUploadRequired": "false",
"UpdateAllowed": "true",
"isTerminateState": "false",
"isStartState": "false",
"uuid": "bf5fdaee-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fdaee-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "CANCEL",
"nextStateId": "bf5fe0fc-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CLERK",
"tenantId": "default",
"uuid": "4bd0faa6-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fdaee-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "REJECT",
"nextStateId": "bf5fe318-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CLERK",
"tenantId": "default",
"uuid": "4bd0fc54-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fdaee-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "MARK",
"nextStateId": "bf5fdaee-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CLERK",
"tenantId": "default",
"uuid": "4bd0feac-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fdaee-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "FORWARD",
"nextStateId": "bf5fdd28-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CLERK",
"tenantId": "default",
"uuid": "4bd10136-f7d3-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "FIELDINSPECTION",
"applicableNextStates": "Approved,Cancelled,Rejected",
"applicableActions": "",
"docUploadRequired": "",
"UpdateAllowed": "",
"isTerminateState": "false",
"isStartState": "false",
"uuid": "bf5fdd28-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fdd28-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "CANCEL",
"nextStateId": "bf5fe0fc-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_FIELD_INSPECTOR",
"tenantId": "default",
"uuid": "4bd1041a-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fdd28-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "REJECT",
"nextStateId": "bf5fe318-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_FIELD_INSPECTOR",
"tenantId": "default",
"uuid": "4bd1064a-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fdd28-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "MARK",
"nextStateId": "bf5fdd28-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_FIELD_INSPECTOR",
"tenantId": "default",
"uuid": "4bd108ac-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fdd28-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "FORWARD",
"nextStateId": "bf5fe444-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_FIELD_INSPECTOR",
"tenantId": "default",
"uuid": "4bd10de8-f7d3-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "APPROVED",
"applicableNextStates": "",
"applicableActions": "CANCEL",
"docUploadRequired": "true",
"UpdateAllowed": "true",
"isTerminateState": "true",
"isStartState": "false",
"uuid": "bf5fdfbc-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fdfbc-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "CANCEL",
"nextStateId": "bf5fe0fc-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_APPROVER",
"tenantId": "default",
"uuid": "4bd11770-f7d3-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "CANCELLED",
"applicableNextStates": "",
"applicableActions": "",
"docUploadRequired": "false",
"UpdateAllowed": "true",
"isTerminateState": "true",
"isStartState": "false",
"uuid": "bf5fe0fc-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fe0fc-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "",
"nextStateId": "",
"roles": "",
"tenantId": "default",
"uuid": "4bd112e8-f7d3-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "REJECTED",
"applicableNextStates": "Initiated",
"applicableActions": "Reapply",
"docUploadRequired": "true",
"UpdateAllowed": "true",
"isTerminateState": "true",
"isStartState": "false",
"uuid": "bf5fe318-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fe318-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "REINITIATE",
"nextStateId": "bf5fd4f4-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CITIZEN,TL_CEMP",
"tenantId": "default",
"uuid": "4bd115fe-f7d3-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "PENDINGAPPROVAL",
"applicableNextStates": "",
"applicableActions": "",
"docUploadRequired": "",
"UpdateAllowed": "",
"isTerminateState": "false",
"isStartState": "false",
"uuid": "bf5fe444-f7df-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "bf5fe444-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "APPROVE",
"nextStateId": "bf5fdfbc-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_APPROVER",
"tenantId": "default",
"uuid": "4bd10f50-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fe444-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "CANCEL",
"nextStateId": "bf5fe0fc-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_APPROVER",
"tenantId": "default",
"uuid": "4bd11086-f7d3-11e8-8eb2-f2801f1b9fd1"
},
{
"stateId": "bf5fe444-f7df-11e8-8eb2-f2801f1b9fd1",
"action": "REJECT",
"nextStateId": "bf5fe318-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "TL_APPROVER",
"tenantId": "default",
"uuid": "4bd111a8-f7d3-11e8-8eb2-f2801f1b9fd1"
}
]
},
{
"businessServiceId": "NewTL",
"state": "",
"applicableNextStates": "Initiated",
"applicableActions": "INITIATE",
"docUploadRequired": "false",
"UpdateAllowed": "true",
"isTerminateState": "false",
"isStartState": "true",
"uuid": "9d458700-f894-11e8-8eb2-f2801f1b9fd1",
"tenantId": "default",
"actions": [
{
"stateId": "9d458700-f894-11e8-8eb2-f2801f1b9fd1",
"action": "INITIATE",
"nextStateId": "bf5fd4f4-f7df-11e8-8eb2-f2801f1b9fd1",
"roles": "CITIZEN,TL_CEMP",
"tenantId": "default",
"uuid": "2efb9036-f895-11e8-8eb2-f2801f1b9fd1"
}
]
}
]
}
]
}
14 changes: 14 additions & 0 deletions data/default/Workflow/BusinessServiceConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"tenantId": "default",
"moduleName": "Workflow",
"BusinessServiceConfig": [
{
"code": "NEWTL",
"isStateLevel": true
},
{
"code": "FIRENOC",
"isStateLevel": true
}
]
}
21 changes: 21 additions & 0 deletions data/default/Workflow/BusinessServiceMasterConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"tenantId": "default",
"moduleName": "Workflow",
"BusinessServiceMasterConfig": [
{
"businessService": "NewTL",
"active": "true",
"isStatelevel": "true"
},
{
"businessService": "PGR",
"active": "true",
"isStatelevel": "true"
},
{
"businessService": "DisconnectSWConnection1",
"active": "true",
"isStatelevel": "false"
}
]
}

0 comments on commit 5c171bc

Please sign in to comment.