Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_CaseNotification" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.39.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.23.0">
<bpmn:process id="case-notification-process" name="Case notification" isExecutable="true" camunda:historyTimeToLive="180">
<bpmn:startEvent id="MessageStartEvent" name="Notification requested">
<bpmn:outgoing>Flow_1</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_NotificationRequested" messageRef="Message_NotificationRequested" />
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1" sourceRef="MessageStartEvent" targetRef="AcknowledgeNotificationTask" />
<bpmn:userTask id="AcknowledgeNotificationTask" name="Acknowledge notification" camunda:candidateGroups="ROLE_USER">
<bpmn:incoming>Flow_1</bpmn:incoming>
<bpmn:outgoing>Flow_2</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_2" sourceRef="AcknowledgeNotificationTask" targetRef="EndEvent" />
<bpmn:endEvent id="EndEvent" name="Notification handled">
<bpmn:incoming>Flow_2</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmn:message id="Message_NotificationRequested" name="case-notification-requested" />
<bpmndi:BPMNDiagram id="BPMNDiagram_CaseNotification">
<bpmndi:BPMNPlane id="BPMNPlane_CaseNotification" bpmnElement="case-notification-process">
<bpmndi:BPMNShape id="MessageStartEvent_di" bpmnElement="MessageStartEvent">
<dc:Bounds x="172" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="149" y="145" width="83" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="AcknowledgeNotificationTask_di" bpmnElement="AcknowledgeNotificationTask">
<dc:Bounds x="270" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_di" bpmnElement="EndEvent">
<dc:Bounds x="432" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="410" y="145" width="81" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
<di:waypoint x="208" y="120" />
<di:waypoint x="270" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2">
<di:waypoint x="370" y="120" />
<di:waypoint x="432" y="120" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"processDefinitionKey": "case-notification-process"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"key": "case-notification",
"name": "Case notification",
"description": "Started by the 'case-notification-requested' message start event. Demonstrates caseCorrelationService.sendStartMessageToCase: this building block has no start form and cannot be started from the case Start menu.",
"versionTag": "1.0.0",
"final": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$id": "case-notification.schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Case notification",
"type": "object",
"properties": {
"subject": {
"type": "string",
"description": "Subject copied from the case by the input mapping of the case definition link"
},
"handledBy": {
"type": "string",
"description": "Who acknowledged the notification"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"display": "form",
"components": [
{
"label": "HTML",
"content": "This building block was started by a message. The subject below came from the case through the input mapping of the case definition link.",
"refreshOnChange": false,
"key": "html",
"type": "htmlelement",
"input": false,
"tableView": false
},
{
"label": "Subject",
"disabled": true,
"tableView": true,
"key": "subject",
"type": "textfield",
"input": true
},
{
"label": "Handled by",
"placeholder": "Who picked this up?",
"tableView": true,
"validate": {
"required": true
},
"key": "handledBy",
"type": "textfield",
"input": true
},
{
"type": "button",
"label": "Acknowledge",
"key": "submit",
"disableOnInvalid": true,
"input": true,
"tableView": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"activityId": "AcknowledgeNotificationTask",
"activityType": "bpmn:UserTask:create",
"processLinkType": "form",
"formDefinitionName": "case-notification-acknowledge"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_CaseReview" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.39.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.23.0">
<bpmn:process id="case-review-process" name="Case review" isExecutable="true" camunda:historyTimeToLive="180">
<bpmn:startEvent id="StartEvent" name="Start review">
<bpmn:outgoing>Flow_1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1" sourceRef="StartEvent" targetRef="WaitForApproval" />
<bpmn:intermediateCatchEvent id="WaitForApproval" name="Wait for review-approved">
<bpmn:incoming>Flow_1</bpmn:incoming>
<bpmn:outgoing>Flow_2</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_ReviewApproved" messageRef="Message_ReviewApproved" />
</bpmn:intermediateCatchEvent>
<bpmn:sequenceFlow id="Flow_2" sourceRef="WaitForApproval" targetRef="StoreApprovedBy" />
<bpmn:serviceTask id="StoreApprovedBy" name="Store who approved" camunda:expression="${valueResolverDelegateService.handleValue(execution, 'doc:/approvedBy', approvedBy)}">
<bpmn:incoming>Flow_2</bpmn:incoming>
<bpmn:outgoing>Flow_3</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_3" sourceRef="StoreApprovedBy" targetRef="EndEvent" />
<bpmn:endEvent id="EndEvent" name="Review done">
<bpmn:incoming>Flow_3</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmn:message id="Message_ReviewApproved" name="review-approved" />
<bpmndi:BPMNDiagram id="BPMNDiagram_CaseReview">
<bpmndi:BPMNPlane id="BPMNPlane_CaseReview" bpmnElement="case-review-process">
<bpmndi:BPMNShape id="StartEvent_di" bpmnElement="StartEvent">
<dc:Bounds x="172" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="160" y="145" width="61" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="WaitForApproval_di" bpmnElement="WaitForApproval">
<dc:Bounds x="272" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="248" y="145" width="85" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="StoreApprovedBy_di" bpmnElement="StoreApprovedBy">
<dc:Bounds x="370" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="EndEvent_di" bpmnElement="EndEvent">
<dc:Bounds x="532" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="524" y="145" width="61" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
<di:waypoint x="208" y="120" />
<di:waypoint x="272" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2">
<di:waypoint x="308" y="120" />
<di:waypoint x="370" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_3_di" bpmnElement="Flow_3">
<di:waypoint x="470" y="120" />
<di:waypoint x="532" y="120" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"processDefinitionKey": "case-review-process"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"key": "case-review",
"name": "Case review",
"description": "Waits for the 'review-approved' message. Demonstrates that a message sent to the case with caseCorrelationService.sendCatchEventMessageToCase reaches a running building block.",
"versionTag": "1.0.0",
"final": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$id": "case-review.schema",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Case review",
"type": "object",
"properties": {
"subject": {
"type": "string",
"description": "Subject copied from the case by the input mapping"
},
"reviewer": {
"type": "string",
"description": "Reviewer entered on the start form"
},
"approvedBy": {
"type": "string",
"description": "Filled from the variable that came along with the 'review-approved' message"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"display": "form",
"components": [
{
"label": "HTML",
"content": "This building block waits for the <strong>review-approved</strong> message. Start it, then run the <strong>Send review-approved message</strong> action on the case to let it continue.",
"refreshOnChange": false,
"key": "html",
"type": "htmlelement",
"input": false,
"tableView": false
},
{
"label": "Reviewer",
"placeholder": "Who is going to review this?",
"tableView": true,
"validate": {
"required": true
},
"key": "reviewer",
"type": "textfield",
"input": true
},
{
"type": "button",
"label": "Start review",
"key": "submit",
"disableOnInvalid": true,
"input": true,
"tableView": false
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"activityId": "StartEvent",
"activityType": "bpmn:StartEvent:start",
"processLinkType": "form",
"formDefinitionName": "start-form-case-review"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_CaseMessaging" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.39.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.23.0">
<bpmn:process id="case-messaging" name="Case messaging" isExecutable="true" camunda:historyTimeToLive="180">
<bpmn:startEvent id="start-event" name="Case started">
<bpmn:outgoing>Flow_1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1" sourceRef="start-event" targetRef="end-event" />
<bpmn:endEvent id="end-event">
<bpmn:incoming>Flow_1</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_CaseMessaging">
<bpmndi:BPMNPlane id="BPMNPlane_CaseMessaging" bpmnElement="case-messaging">
<bpmndi:BPMNShape id="start-event_di" bpmnElement="start-event">
<dc:Bounds x="172" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="160" y="145" width="61" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="end-event_di" bpmnElement="end-event">
<dc:Bounds x="292" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
<di:waypoint x="208" y="120" />
<di:waypoint x="292" y="120" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_RequestCaseNotification" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.39.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.23.0">
<bpmn:process id="request-case-notification" name="Request case notification" isExecutable="true" camunda:historyTimeToLive="180">
<bpmn:startEvent id="start-event">
<bpmn:outgoing>Flow_1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1" sourceRef="start-event" targetRef="throw-notification-requested" />
<bpmn:intermediateThrowEvent id="throw-notification-requested" name="Start the notification building block">
<bpmn:incoming>Flow_1</bpmn:incoming>
<bpmn:outgoing>Flow_2</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_RequestNotification" camunda:expression="${caseCorrelationService.sendStartMessageToCase(&#34;case-notification-requested&#34;, execution)}" />
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_2" sourceRef="throw-notification-requested" targetRef="end-event" />
<bpmn:endEvent id="end-event">
<bpmn:incoming>Flow_2</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_RequestCaseNotification">
<bpmndi:BPMNPlane id="BPMNPlane_RequestCaseNotification" bpmnElement="request-case-notification">
<bpmndi:BPMNShape id="start-event_di" bpmnElement="start-event">
<dc:Bounds x="172" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="throw-notification-requested_di" bpmnElement="throw-notification-requested">
<dc:Bounds x="282" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="259" y="145" width="83" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="end-event_di" bpmnElement="end-event">
<dc:Bounds x="412" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
<di:waypoint x="208" y="120" />
<di:waypoint x="282" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2">
<di:waypoint x="318" y="120" />
<di:waypoint x="412" y="120" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_SendReviewApproved" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.39.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.23.0">
<bpmn:process id="send-review-approved" name="Send review-approved message" isExecutable="true" camunda:historyTimeToLive="180">
<bpmn:startEvent id="start-event">
<bpmn:outgoing>Flow_1</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1" sourceRef="start-event" targetRef="throw-review-approved" />
<bpmn:intermediateThrowEvent id="throw-review-approved" name="Send review-approved to the case">
<bpmn:incoming>Flow_1</bpmn:incoming>
<bpmn:outgoing>Flow_2</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_SendReviewApproved" camunda:expression="${caseCorrelationService.sendCatchEventMessageToCase(&#34;review-approved&#34;, execution, &#34;approvedBy&#34;, &#34;the send-review-approved action&#34;)}" />
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_2" sourceRef="throw-review-approved" targetRef="end-event" />
<bpmn:endEvent id="end-event">
<bpmn:incoming>Flow_2</bpmn:incoming>
</bpmn:endEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_SendReviewApproved">
<bpmndi:BPMNPlane id="BPMNPlane_SendReviewApproved" bpmnElement="send-review-approved">
<bpmndi:BPMNShape id="start-event_di" bpmnElement="start-event">
<dc:Bounds x="172" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="throw-review-approved_di" bpmnElement="throw-review-approved">
<dc:Bounds x="282" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="259" y="145" width="83" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="end-event_di" bpmnElement="end-event">
<dc:Bounds x="412" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1_di" bpmnElement="Flow_1">
<di:waypoint x="208" y="120" />
<di:waypoint x="282" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_2_di" bpmnElement="Flow_2">
<di:waypoint x="318" y="120" />
<di:waypoint x="412" y="120" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Loading
Loading