> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/complaints-management/access/management-console-guide/role-state-action-mapping.md).

# Role State Action Mapping

#### State: where the complaint is right now

A state is the complaint's current standing or status. PENDINGFORASSIGNMENT means someone has to decide who will handle it. PENDINGATLME means a specific person (Last Mile Employee - LME) now owns the work. RESOLVED means the department believes the work is finished.

A complaint occupies exactly one state at any moment. What your citizen sees on their phone as "Assigned to field staff" is this same value, translated.

#### Action: a move that is permitted

An action is a legal move: ASSIGN, RESOLVE, REJECT, REOPEN, RATE, COMMENT, ESCALATE.

* An action is only ever available from a specific state. RESOLVE exists inside PENDINGATLME and nowhere else.
* An action names its destination. Every action carries a next state, so the system can always answer "what could happen next?"
* Some actions loop back to the same state. COMMENT does this, and so does ESCALATE: it keeps the complaint in PENDINGATLME but hands it to the assignee's manager.

#### Role: who holds the authority

A role is a bundle of authority attached to people, not a job title and not a person: GRO, PGR\_LME, PGR\_VIEWER, CITIZEN, CSR, CFC, SYSTEM.

A single officer may hold GRO for one department and PGR\_LME for a locality they cover. Reorganising a department therefore means reassigning roles, not rewriting the workflow. No human holds SYSTEM: it belongs to the system's clock, which escalates overdue complaints according to the PGR Escalation Policy.

#### How everything comes together

E.g. the complaint has been received and needs routing, so it is in the state PENDINGFORASSIGNMENT:

<table><thead><tr><th width="172.26953125">Action</th><th width="235.87109375">Performed by roles</th><th>Lands in</th></tr></thead><tbody><tr><td>ASSIGN</td><td>GRO, PGR_VIEWER</td><td>PENDINGATLME</td></tr><tr><td>REJECT</td><td>GRO, PGR_VIEWER</td><td>REJECTED</td></tr><tr><td>COMMENT</td><td>CITIZEN</td><td>stays here</td></tr></tbody></table>

Roles shown are from the default PGR workflow shipped with 2.20 workspaces. Yours may differ; check them under System → Workflows. In PENDINGATLME, PGR\_LME, PGR\_VIEWER, or SYSTEM can take the ESCALATE action, which leaves the complaint in PENDINGATLME with a new assignee.

## Quick Glossary

<table><thead><tr><th width="187.48046875">Element</th><th>Purpose</th></tr></thead><tbody><tr><td>State</td><td>A status the complaint can be in, e.g. PENDINGFORASSIGNMENT, RESOLVED, CLOSEDAFTERRESOLUTION</td></tr><tr><td>Action</td><td>A verb a user can perform from a given state, e.g. ASSIGN, RESOLVE, REJECT, REOPEN</td></tr><tr><td>Next State</td><td>The state the complaint moves to after an action</td></tr><tr><td>Role(s) per Action</td><td>Which roles may trigger that action from that state</td></tr><tr><td>Start / Terminal state</td><td>The entry point for a new complaint / an end state with no further actions</td></tr><tr><td>SLA</td><td>Expected time to resolve, set per complaint category in hours</td></tr><tr><td>Escalation ladder</td><td>When an overdue complaint is escalated, as a percentage of its SLA (set in PGR Escalation Policy)</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.digit.org/complaints-management/access/management-console-guide/role-state-action-mapping.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
