-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add conditional correlationKey rendering
closes #19
- Loading branch information
Showing
6 changed files
with
160 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
test/spec/cloud-element-templates/fixtures/message-correlation-key.bpmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_165ah7c" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.0.0-alpha.1" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.2.0"> | ||
<bpmn:process id="Process_0vvlc66" isExecutable="true"> | ||
<bpmn:subProcess id="Activity_0exjy73" triggeredByEvent="true"> | ||
<bpmn:startEvent id="MessageStartSubprocess"> | ||
<bpmn:messageEventDefinition id="MessageEventDefinition_1n4teqw" /> | ||
</bpmn:startEvent> | ||
</bpmn:subProcess> | ||
<bpmn:task id="Activity_1utl3n3" /> | ||
<bpmn:boundaryEvent id="MessageBoundary" attachedToRef="Activity_1utl3n3"> | ||
<bpmn:messageEventDefinition id="MessageEventDefinition_0qsg82v" /> | ||
</bpmn:boundaryEvent> | ||
<bpmn:startEvent id="MessageStart"> | ||
<bpmn:messageEventDefinition id="MessageEventDefinition_0752swo" /> | ||
</bpmn:startEvent> | ||
<bpmn:intermediateCatchEvent id="MessageIntermediate"> | ||
<bpmn:messageEventDefinition id="MessageEventDefinition_1yd090z" /> | ||
</bpmn:intermediateCatchEvent> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_0vvlc66"> | ||
<bpmndi:BPMNShape id="Event_1u99b1d_di" bpmnElement="MessageStart"> | ||
<dc:Bounds x="292" y="92" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_1utl3n3_di" bpmnElement="Activity_1utl3n3"> | ||
<dc:Bounds x="510" y="70" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_0t0yt4q_di" bpmnElement="MessageIntermediate"> | ||
<dc:Bounds x="392" y="92" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Activity_01wsyz0_di" bpmnElement="Activity_0exjy73" isExpanded="true"> | ||
<dc:Bounds x="250" y="220" width="350" height="200" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_15z79dd_di" bpmnElement="MessageStartSubprocess"> | ||
<dc:Bounds x="290" y="302" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_0lqa760_di" bpmnElement="MessageBoundary"> | ||
<dc:Bounds x="542" y="132" width="36" height="36" /> | ||
</bpmndi:BPMNShape> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
34 changes: 34 additions & 0 deletions
34
test/spec/cloud-element-templates/fixtures/message-correlation-key.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", | ||
"name": "Message Property", | ||
"id": "message-correlation-key-rendering", | ||
"description": "A conditional template.", | ||
"appliesTo": [ | ||
"bpmn:Event" | ||
], | ||
"elementType": { | ||
"value": "bpmn:StartEvent", | ||
"eventDefinition": "bpmn:MessageEventDefinition" | ||
}, | ||
"properties": [ | ||
{ | ||
"label": "name", | ||
"type": "Hidden", | ||
"value": "one", | ||
"binding": { | ||
"type": "bpmn:Message#property", | ||
"name": "name" | ||
} | ||
}, | ||
{ | ||
"label": "Correlation Key", | ||
"id": "correlationKey", | ||
"type": "String", | ||
"value": "correlationKey", | ||
"binding": { | ||
"type": "bpmn:Message#zeebe:subscription#property", | ||
"name": "correlationKey" | ||
} | ||
} | ||
] | ||
} |