Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🌠Complaints Service

Overview

The Complaints Service manages complaint and grievance workflows in HCM. It lets citizens raise complaints, track progress, and receive status updates as the complaint moves through the workflow.

Core entities

The service uses the following core entities:

  • PGREntity — Top-level wrapper for the complaint service payload and workflow data.

  • Service — Complaint details, including the complaint owner.

  • Workflow — Action, comments, documents, and workflow metadata for each transition.

  • Citizen — User record for the person filing the complaint or the person represented.

  • Address — Location details linked to the complaint.

  • Notification — SMS or event notification sent when the complaint status changes.

Dependencies

  • egov-user

  • egov-localization

  • egov-idgen

  • egov-mdms

  • egov-persister

  • egov-notification-sms

  • egov-notification-mail

  • egov-hrms

  • egov-workflow-v2

  • egov-url-shortening

Configurable Properties

Environment variable
Description
Value

pgr.complain.idle.time

Time after which the citizen cannot reopen the complaint.

864000000

pgr.default.offset

Default offset for search requests.

0

pgr.default.limit

Default limit for search requests.

100

pgr.search.max.limit

Maximum records returned by a search request.

200

notification.sms.enabled

Enables or disables SMS notifications.

true

egov.user.event.notification.enabled

Enables or disables event notifications.

true

API Details

Base path: /pgr-services/v2/[API endpoint]

Endpoints

  • Create complaint — POST /_create Creates a new complaint in the system.

  • Update complaint — POST /_update Updates complaint details and performs workflow actions.

  • Search complaints — POST /_search Searches complaints using supported filter parameters. Default offset and limit apply when omitted.

  • Count complaints — POST /_search Returns the total number of complaints matching the search criteria.

Event topics

Kafka consumers

  • None

Kafka producers

  • save-pgr-request — Creates a new complaint.

  • update-pgr-request — Updates an existing complaint.

Changes in HCM v2.1

HCM v2.1 did not change APIs, business logic, database schema, or Kafka topics.

  • Tracer dependency bumped from 2.9.0-SNAPSHOT to 2.9.1-SNAPSHOT (9df5d1c).

  • The OpenTelemetry artefacts shipped by the 2.9.1 tracer line (opentelemetry-instrumentation-bom-alpha, opentelemetry-spring-boot-starter) are excluded from the tracer dependency (6381637), so pgr-services opts out of the tracer's OTel auto-instrumentation.

  • The per-service DataAccessExceptionHandler (HCMPRE-1870 DB-error masking) rolled out to other health services in v2.1 was not added to pgr-services in this window.

Last updated

Was this helpful?