Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
/ slapolicy-sample Public archive

A jBPM Case Management project sample with a SLA policy defined

Notifications You must be signed in to change notification settings

hifly81/slapolicy-sample

Repository files navigation

SLA Policy - jBPM Case Management

A case project sample with a SLA policy defined

This sample project shows as a SLA policy with a priority and a resolution duration can be attached to a case; when the SLA policy is elapsed a human task (Task Two) is created.

Task Two is delegated to an escalation group (or groups) after a period (configurable)

alt text

SLA Policy - usage

Start a case with:

curl -X POST "http://<ip>/kie-server/services/rest/server/containers/<container_id>/cases/<case_definition_id>/instances" \ 
-H  "accept: application/xml" -H  "content-type: application/json" -d \
'{"case-group-assignments": {"Staff": "Staff"},"case-data": {"slaPolicy":{"name": "urgent_sla","description": "urgent_sla","priority": "HIGH", "resolutionDuration": "PT300S", "escalation": {"groups": "Staff","waitingTimeBeforeEscalate": "PT30S"}}}}"
  • case-group-assignments --> are case roles
  • case-data -- slaPolicy --> object representing a SLA policy

resolutionDuration is a ISO-8601 date format
waitingTimeBeforeEscalate is a ISO-8601 date format

Releases

No releases published

Packages

No packages published

Languages