Skip to main content

Unpaid Work and Delius

Service that supports integration between the Unpaid Work Service and Delius. The service provides an API for gathering data on the person on probation and background information on the probation case. The integration service also listens for events indicating a new unpaid work document has been completed and is responsible for updating the Delius case record with a copy of the resulting unpaid work document.

Business Need

Supporting the Unpaid Work Service with background and case information used when placing people on suitable community payback schemes. Ensuring minimal double-keying is required when working through the unpaid work process and ensuring the probation case record in Delius is updated to reflect the activity in the Unpaid Work Service.

Context Maps

Context Maps

Interfaces

Message Formats

The service responds to an HMPPS Domain Event message via an SQS Queue. The events are raised by the Unpaid Work Service when an unpaid work assessment is complete.

Example messages are in the development source tree.

Incoming messages are filtered on eventType by the SQS queue policy

Business Event Message Class Message Event Type / Filter
Unpaid Work Assessment Completed HMPPS Domain Event “unpaid-work.assessment.completed”

Unpaid Work Document

The service uses detailUrl contained in the event message to request the full unpaid work assessment document which is then uploaded to Alfresco and attached to the case record.

Authorisation

API endpoints are secured by roles supplied by the HMPPS Auth client used in the requests

API Endpoint Required Role
/case-data/{crn}/{eventId} ROLE_UPW_DETAILS
/case-data/{crn}/personal-details ROLE_UPW_DETAILS