An open API service indexing awesome lists of open source software.

https://github.com/hifly81/slapolicy-sample

A jBPM Case Management project sample with a SLA policy defined
https://github.com/hifly81/slapolicy-sample

bpm bpmn-engine bpmn2 case-management jboss jbpm sla-policy wildfly

Last synced: 8 months ago
JSON representation

A jBPM Case Management project sample with a SLA policy defined

Awesome Lists containing this project

README

          

# 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](https://github.com/hifly81/slapolicy-sample/blob/master/src/main/resources/com/redhat/slapolicy_example/slapolicy-example.SLA_policy_sample-svg.svg)

## SLA Policy - usage

Start a case with:

```
curl -X POST "http:///kie-server/services/rest/server/containers//cases//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