...
Sample workflow config - (The same PT.CREATE can be used for update workflow also since both involve the same functionality)
Code Block | ||
---|---|---|
| ||
{ "RequestInfo": { "apiId": "Rainmaker", "tenantIdaction": "pb", "did": 1, "businessServicekey": "PT.CREATE", "msgId": "20170310130900|en_IN", "businessrequesterId": "PT", "ts": 1513579888683, "businessServiceSlaver": null".01", "authToken": "b39181b1-5c6b-484a-b825-6be2f62012b8" }, "statesBusinessServices": [ { "tenantId": "pb", "businessService": "PT.CREATE", { "business": "PT", "businessServiceSla": null, "tenantIdstates": [ "pb", { "slatenantId": null"pb", "sla": null, "state": null, "state": null, "applicationStatus": "INWORKFLOW", "docUploadRequired": false, "docUploadRequired": false, "isStartState": true, "isStartStateisTerminateState": truefalse, "actions": [ "isTerminateState": false, { "actions": [ "tenantId": "pb", { "action": "OPEN", "tenantIdnextState": "pbOPEN", "roles": [ "action": "OPEN", "CITIZEN", "nextState": "OPEN", "EMPLOYEE" ] "roles": [ } ] "CITIZEN", }, { "tenantId": "pb", "EMPLOYEE" "sla": null, "state": "OPEN", ] "applicationStatus": "INWORKFLOW", "docUploadRequired": false, } "isStartState": true, ] "isTerminateState": false, },"actions": [ { "tenantId": "pb", "slaaction": null"VERIFY", "statenextState": "OPENDOCVERIFIED", "applicationStatusroles": "INWORKFLOW",[ "docUploadRequired": false, "PT_DOC_VERIFIER" "isStartState": true, ] "isTerminateState": false}, { "actions": [ "tenantId": "pb", { "action": "REJECT", "tenantIdnextState": "pbREJECTED", "roles": [ "action": "VERIFY", "PT_DOC_VERIFIER" ] "nextState": "DOCVERIFIED", }, { "roles": [ "tenantId": "pb", "action": "PT_DOC_VERIFIERSENDBACKTOCITIZEN", "nextState": "CORRECTIONPENDING", ] "roles": [ } "PT_DOC_VERIFIER" ] ] } }, ] }, { { "tenantId": "pb", "sla": null, "sla": null, "state": "DOCVERIFIED", "stateapplicationStatus": "DOCVERIFIEDINWORKFLOW", "docUploadRequired": false, "applicationStatus": "INWORKFLOW", "isStartState": false, "docUploadRequiredisTerminateState": false, "actions": [ "isStartState": false, { "isTerminateState": false, "tenantId": "pb", "actions": [ "action": "FORWARD", { "nextState": "FIELDVERIFIED", "tenantIdroles": "pb",[ "PT_FIELD_INSPECTOR" "action": "FORWARD", ] "nextState": "FIELDVERIFIED", } ] }, "roles": [ { "tenantId": "pb", "PT_FIELD_INSPECTORsla": null, "state": "FIELDVERIFIED", ] "applicationStatus": "INWORKFLOW", "docUploadRequired": false, } "isStartState": false, ] "isTerminateState": false, "actions": [ }, { "tenantId": "pb", "slaaction": null"APPROVE", "statenextState": "FIELDVERIFIEDAPPROVED", "applicationStatusroles": "INWORKFLOW", [ "docUploadRequiredPT_APPROVER": false, ] "isStartState": false, }, "isTerminateState": false, { "actions": [ "tenantId": "pb", { "action": "REJECT", "tenantIdnextState": "pbREJECTED", "actionroles": "APPROVE",[ "PT_APPROVER" "nextState": "APPROVED", ] "roles": [} ] }, { "PT_APPROVER" "tenantId": "pb", "sla": null, ] "state": "REJECTED", }"applicationStatus": "INACTIVE", "docUploadRequired": false, { "isStartState": false, "isTerminateState": true, "tenantIdactions": "pb",null }, { "actiontenantId": "REJECTpb", "sla": null, "nextStatestate": "REJECTEDAPPROVED", "applicationStatus": "ACTIVE", "rolesdocUploadRequired": [false, "isStartState": false, "PT_APPROVERisTerminateState": true, "actions": null }, ] { "tenantId": "pb", } "sla": null, "state": "CORRECTIONPENDING", ] "applicationStatus": "INWORKFLOW", "docUploadRequired": }false, "isStartState": false, { "isTerminateState": false, "tenantIdisStateUpdatable": "pb"true, "actions": [ "sla": null, { "statetenantId": "REJECTEDpb", "applicationStatusaction": "INACTIVEREOPEN", "docUploadRequirednextState": false"OPEN", "isStartStateroles": false,[ "isTerminateStateCITIZEN": true, "actionsPT_CEMP": null }, ] }, { { "tenantId": "pb", "sla"tenantId": null"pb", "stateaction": "APPROVEDREJECT", "applicationStatusnextState": "ACTIVEREJECTED", "docUploadRequiredroles": false,[ "isStartStateCITIZEN": false, "isTerminateStatePT_CEMP": true, ] "actions": null } } ] } ] ] } ] } |
PT.LEGACY workflow config
Code Block |
---|
{ "RequestInfo": { "apiId": "Rainmaker", "action": "", "did": 1, "key": "", "msgId": "20170310130900|en_IN", "requesterId": "", "ts": 1513579888683, "ver": ".01", "authToken": "{{authToken_amritsar}}" }, "BusinessServices": [ { "tenantId": "pb", "businessService": "PT.LEGACY", "business": "PT", "businessServiceSla": null, "states": [ { "tenantId": "pb", "sla": null, "state": null, "applicationStatus": "INWORKFLOW", "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "actions": [ { "tenantId": "pb", "action": "OPEN", "nextState": "APPROVALPENDING", "roles": [ "CITIZEN", "EMPLOYEE" ] } ] }, { "tenantId": "pb", "sla": null, "state": "APPROVALPENDING", "applicationStatus": "INWORKFLOW", "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "actions": [ { "tenantId": "pb", "action": "APPROVE", "nextState": "APPROVED", "roles": [ "EMPLOYEE" ] }, { "tenantId": "pb", "action": "REJECT", "nextState": "REJECTED", "roles": [ "EMPLOYEE" ] } ] }, { "tenantId": "pb", "sla": null, "state": "REJECTED", "applicationStatus": "INACTIVE", "docUploadRequired": false, "isStartState": false, "isTerminateState": true, "actions": null }, { "tenantId": "pb", "sla": null, "state": "APPROVED", "applicationStatus": "INACTIVE", "docUploadRequired": false, "isStartState": false, "isTerminateState": true, "actions": null } ] } ] } |
Notifications :
To enable or disable notifcation
notif.sms.enabled=true
...