...
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", "action": "", "did": 1, "key": "", "msgId": "20170310130900|en_IN", "requesterId": "", "ts": 1513579888683, "ver": ".01", "authToken": "b39181b1-5c6b-484a-b825-6be2f62012b8" }, "BusinessServices": [ { "tenantId": "pb", "businessService": "PT.CREATE", "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": "OPEN", "roles": [ "CITIZEN", "EMPLOYEE" ] } ] }, { "tenantId": "pb", "sla": null, "state": "OPEN", "applicationStatus": "INWORKFLOW", "docUploadRequired": false, "isStartState": true, "isTerminateState": false, "actions": [ { "tenantId": "pb", "action": "VERIFY", "nextState": "DOCVERIFIED", "roles": [ "PT_DOC_VERIFIER" ] }, { "tenantId": "pb", "action": "REJECT", "nextState": "REJECTED", "roles": [ "PT_DOC_VERIFIER" ] }, { "tenantId": "pb", "action": "SENDBACKTOCITIZEN", "nextState": "CORRECTIONPENDING", "roles": [ "PT_DOC_VERIFIER" ] } ] }, { "tenantId": "pb", "sla": null, "state": "DOCVERIFIED", "applicationStatus": "INWORKFLOW", "docUploadRequired": false, "isStartState": false, "isTerminateState": false, "actions": [ { "tenantId": "pb", "tenantIdaction": "pbFORWARD", "businessServicenextState": "PT.CREATEFIELDVERIFIED", "businessroles": [ "PT",_FIELD_INSPECTOR" ] "businessServiceSla": null, } "states": [ ] {}, { "tenantId": "pb", "sla": null, "state": null, "FIELDVERIFIED", "applicationStatus": "INWORKFLOW", "docUploadRequired": false, "docUploadRequiredisStartState": false, "isTerminateState": false, "isStartStateactions": [ true, { "isTerminateState": false, "tenantId": "pb", "actions": [ "action": "APPROVE", { "nextState": "APPROVED", "tenantId": "pb", "roles": [ "action": "OPENPT_APPROVER", ] "nextState": "OPEN", }, { "roles": [ "tenantId": "pb", "CITIZEN", "action": "REJECT", "EMPLOYEE""nextState": "REJECTED", "roles": [ ] "PT_APPROVER" } ] ] } }, ] }, { { "tenantId": "pb", "sla": null, "sla": null, "state": "REJECTED", "stateapplicationStatus": "OPENINACTIVE", "docUploadRequired": false, "applicationStatus": "INWORKFLOW", "isStartState": false, "docUploadRequiredisTerminateState": falsetrue, "actions": null "isStartState": true}, { "isTerminateStatetenantId": false"pb", "actions"sla": [null, "state": "APPROVED", { "applicationStatus": "ACTIVE", "docUploadRequired": false, "tenantIdisStartState": "pb"false, "isTerminateState": true, "actionactions": "VERIFY",null }, { "nextStatetenantId": "DOCVERIFIEDpb", "sla": null, "state": "rolesCORRECTIONPENDING":, [ "applicationStatus": "INWORKFLOW", "docUploadRequired": false, "PT_DOC_VERIFIERisStartState": false, "isTerminateState": false, "isStateUpdatable": true, ] "actions": [ { } "tenantId": "pb", ] },"action": "REOPEN", { "nextState": "OPEN", "tenantIdroles": "pb",[ "slaCITIZEN": null, "state": "DOCVERIFIED",PT_CEMP" ] "applicationStatus": "INWORKFLOW", }, "docUploadRequired": false, { "isStartStatetenantId": false"pb", "isTerminateStateaction": false"REJECT", "actionsnextState": ["REJECTED", "roles": [ { "CITIZEN", "tenantId": "pb", "PT_CEMP" ] "action": "FORWARD", } ] "nextState": "FIELDVERIFIED", } ] } ] } |
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
...