Auto Escalation (frontend repo) - Technical Documentation

Objective

Before going to read this Auto Escalation, please refer inbox technical documentation here Employee Inbox

Provide Employee to to show escalated applications which are pending for action.

Route - https://egov-micro-uat.egovernments.org/employee/inbox

 

 

Technical Implementation Details:

Note:

  1. Here we inter-changed the tabs like ASSIGNED TO ME to ALL vise versa added Escalated tab in the 3rd position .

  2. Nearing Escalation and Escalated: Here we changed the localisation message of Escalated to SLA Breached.

 

Please find the Escalated api using file path: https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/redux/app/actions.js

we are calling escalated api based on the condtions.

  1. get the all applications in payload.ProcessInstances using egov-workflow-v2/egov-wf/process/_search

  2. get the escalated applications in escalatedPayload.ProcessInstances using egov-workflow-v2/egov-wf/escalate/_search

  3. pushing escalated applications into all applications with isEscalatedApplication flag with true value, for finding the escalated application in all applications.

  4. Then it will work same like inbox Employee Inbox

Escalated Tab :

Escalated Tab which shows the Escalated applications.

From the process instance response we get all the records from which we filter the records based on the following condition

if (get(item, "isEscalatedApplication", false)) { escalatedToMe.push([...dataRows]) }

here isEscalatedApplication is the flag added in the initially for separating the escalated application to show in the escalated tab.

OnClick on History:

Functionality works as it is but only changes is showing the symbol to identifying from which state its escalated.

Functionality file path: https://github.com/egovernments/frontend/blob/master/web/rainmaker/packages/employee/src/modules/employee/Inbox/components/Table/index.js

 

Note: Inbox functionality will work same like before Employee Inbox

ROLE ACTION MAPPING

API

ROLES

ACTION ID

API

ROLES

ACTION ID

1

/egov-workflow-v2/egov-wf/escalate/_search

EMPLOYEE

2150