Crime Check Service Workflow
The Crime Check service works asynchronously. When a check request is submitted, the service immediately returns a requestId. Once the report is generated, the service sends the report to a configured callback URL.
There are two ways the service can be triggered depending on the portal being used.
1. HR Portal Workflow (Automatic)
- Add Enhanced Court Record check
- Enter the required check information such as Person Name, Date of Birth, Full Address and Father Name
- If any required check information is missing, set check status to insufficiency automatically
- If all required check information added, check status set to in progress automatically
- Crime check service runs automatically in the background, If all check infos have been entered
In the HR portal, the crime check service runs automatically in the background after the HR user enters the required check information.
- HR user enters the required check information.
- The system automatically calls the Crime Check API in the background.
- The API returns a
requestId.
- The system stores this
requestId for tracking the request.
- Once the report is ready, the Crime Check service sends the result to the configured callback URL.
- The callback handler save report and mark complete the check according to risk level.
2. Admin Portal Workflow (Manual)
In the Admin portal, the workflow is the same as the HR portal, except the service must be triggered manually by clicking Run Service button.
Manual Report Fetch (Fallback)
If the callback request fails or the system does not receive the report, the administrator can manually fetch the report using the requestId from the Admin portal.
- Admin triggers a Fetch Report action.
- The system calls the Crime Check API to retrieve the report.
- Save report and mark complete the check according to risk level