Workflow Auto Escalation
Configure escalation flows based on predefined criteria
Was this helpful?
Was this helpful?
- version: 1.0
description: Updates pgr status for auto escalate
fromTopic: pgr-auto-escalation
isTransaction: true
queryMaps:
- query: UPDATE eg_pgr_service_v2 SET applicationstatus=?, lastmodifiedby=?, lastmodifiedtime=? WHERE serviceRequestId=? AND tenantId=?;
basePath: ProcessInstances.*
jsonMaps:
- jsonPath: $.ProcessInstances.*.state.applicationStatus
- jsonPath: $.ProcessInstances.*.auditDetails.lastModifiedBy
- jsonPath: $.ProcessInstances.*.auditDetails.lastModifiedTime
- jsonPath: $.ProcessInstances.*.businessId
- jsonPath: $.ProcessInstances.*.tenantIdcurl --location --request POST 'http://localhost:8081/egov-workflow-v2/egov-wf/auto/PGR/_escalate' \
--header 'Content-Type: application/json' \
--data-raw '{
"RequestInfo": {
"apiId": "Rainmaker",
"action": "",
"did": 1,
"key": "",
"msgId": "20170310130900|en_IN",
"requesterId": "",
"ts": 1513579888683,
"ver": ".01",
"authToken": "c66ee6b0-854c-4dde-b1a6-4b9f9b03a62f",
"userInfo": {
"id": 18397,
"uuid": "cf209669-88e4-4da8-951b-a0173b3edcae",
"userName": "TRUPTI",
"name": "Trupti",
"mobileNumber": "8970064765",
"emailId": "",
"locale": null,
"type": "EMPLOYEE",
"roles": [
{
"name": "Auto Escalation Employee",
"code": "AUTO_ESCALATE",
"tenantId": "pb"
}
],
"active": true,
"tenantId": "pb.amritsar",
"permanentCity": null
}
}
}'{
"action": "CLOSERESOLVEDCOMPLAIN",
"nextState": "CLOSEDAFTERRESOLUTION",
"roles": [
"AUTO_ESCALATE"
]
}curl --location --request POST 'https://dev.digit.org/egov-workflow-v2/egov-wf/escalate/_search?tenantId=pb.amritsar&businessService=PGR' \
--header 'Content-Type: application/json' \
--data-raw '{
"RequestInfo": {
"apiId": "Rainmaker",
"action": "",
"did": 1,
"key": "",
"msgId": "20170310130900|en_IN",
"requesterId": "",
"ts": "",
"ver": ".01",
"authToken": "ef5dd6d8-a76b-40a2-94e1-c810a46eb50b"
}
}'