From 791ced7d6a6d8f1ce1ca0aa2833515777ef365b3 Mon Sep 17 00:00:00 2001 From: Shiva Burade Date: Wed, 14 Jun 2023 12:12:31 +0530 Subject: [PATCH] [hlm-2953]: Added workflow service config for default --- data/default/Workflow/AutoEscalation.json | 26 ++ .../AutoEscalationStatesToIgnore.json | 11 + data/default/Workflow/BusinessService.json | 301 ++++++++++++++++++ .../Workflow/BusinessServiceConfig.json | 14 + .../Workflow/BusinessServiceMasterConfig.json | 21 ++ 5 files changed, 373 insertions(+) create mode 100644 data/default/Workflow/AutoEscalation.json create mode 100644 data/default/Workflow/AutoEscalationStatesToIgnore.json create mode 100644 data/default/Workflow/BusinessService.json create mode 100644 data/default/Workflow/BusinessServiceConfig.json create mode 100644 data/default/Workflow/BusinessServiceMasterConfig.json diff --git a/data/default/Workflow/AutoEscalation.json b/data/default/Workflow/AutoEscalation.json new file mode 100644 index 000000000..9b82b47da --- /dev/null +++ b/data/default/Workflow/AutoEscalation.json @@ -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" + } + ] +} diff --git a/data/default/Workflow/AutoEscalationStatesToIgnore.json b/data/default/Workflow/AutoEscalationStatesToIgnore.json new file mode 100644 index 000000000..be41306f7 --- /dev/null +++ b/data/default/Workflow/AutoEscalationStatesToIgnore.json @@ -0,0 +1,11 @@ +{ + "tenantId": "default", + "moduleName": "Workflow", + "AutoEscalationStatesToIgnore": [ + { + "businessService": "NewTL", + "module": "TL", + "state": ["INITIATED","PENDINGAPPROVAL"] + } + ] +} diff --git a/data/default/Workflow/BusinessService.json b/data/default/Workflow/BusinessService.json new file mode 100644 index 000000000..a06945b73 --- /dev/null +++ b/data/default/Workflow/BusinessService.json @@ -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" + } + ] + } + ] + } + ] +} diff --git a/data/default/Workflow/BusinessServiceConfig.json b/data/default/Workflow/BusinessServiceConfig.json new file mode 100644 index 000000000..a3b017393 --- /dev/null +++ b/data/default/Workflow/BusinessServiceConfig.json @@ -0,0 +1,14 @@ +{ + "tenantId": "default", + "moduleName": "Workflow", + "BusinessServiceConfig": [ + { + "code": "NEWTL", + "isStateLevel": true + }, + { + "code": "FIRENOC", + "isStateLevel": true + } + ] +} diff --git a/data/default/Workflow/BusinessServiceMasterConfig.json b/data/default/Workflow/BusinessServiceMasterConfig.json new file mode 100644 index 000000000..fde433828 --- /dev/null +++ b/data/default/Workflow/BusinessServiceMasterConfig.json @@ -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" + } + ] +}