-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cloud-element-templates): provide property groups
Related to camunda/camunda-modeler#2673
- Loading branch information
Niklas Kiefer
committed
Feb 1, 2022
1 parent
7dd4d0b
commit b93a38a
Showing
7 changed files
with
666 additions
and
7 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
95 changes: 95 additions & 0 deletions
95
test/spec/provider/cloud-element-templates/fixtures/template-groups.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,95 @@ | ||
[ | ||
{ | ||
"name": "REST Connector", | ||
"id": "io.camunda.connectors.RestConnector-s1", | ||
"description": "A generic REST service.", | ||
"appliesTo": [ | ||
"bpmn:ServiceTask" | ||
], | ||
"properties": [ | ||
{ | ||
"type": "String", | ||
"value": "http", | ||
"binding": { | ||
"type": "zeebe:taskDefinition:type" | ||
} | ||
}, | ||
{ | ||
"label": "REST Endpoint URL", | ||
"description": "Specify the url of the REST API to talk to.", | ||
"group": "headers", | ||
"type": "String", | ||
"binding": { | ||
"type": "zeebe:taskHeader", | ||
"key": "url" | ||
}, | ||
"constraints": { | ||
"notEmpty": true, | ||
"pattern": { | ||
"value": "^https?://.*", | ||
"message": "Must be http(s) URL." | ||
} | ||
} | ||
}, | ||
{ | ||
"label": "REST Method", | ||
"description": "Specify the HTTP method to use.", | ||
"group": "headers", | ||
"type": "Dropdown", | ||
"value": "get", | ||
"choices": [ | ||
{ "name": "GET", "value": "get" }, | ||
{ "name": "POST", "value": "post" }, | ||
{ "name": "PATCH", "value": "patch" }, | ||
{ "name": "DELETE", "value": "delete" } | ||
], | ||
"binding": { | ||
"type": "zeebe:taskHeader", | ||
"key": "method" | ||
} | ||
}, | ||
{ | ||
"label": "Request Body", | ||
"description": "Data to send to the endpoint.", | ||
"value": "", | ||
"group": "payload", | ||
"type": "String", | ||
"binding": { | ||
"type": "zeebe:input", | ||
"name": "body" | ||
}, | ||
"constraints": { | ||
"optional": true | ||
} | ||
}, | ||
{ | ||
"label": "Result Variable", | ||
"description": "Name of variable to store the response data in.", | ||
"group": "mapping", | ||
"value": "response", | ||
"type": "String", | ||
"binding": { | ||
"type": "zeebe:output", | ||
"source": "= body" | ||
}, | ||
"constraints": { | ||
"optional": true | ||
} | ||
} | ||
], | ||
"groups": [ | ||
{ | ||
"id": "headers", | ||
"label": "Request headers" | ||
}, | ||
{ | ||
"id": "payload", | ||
"label": "Request payload" | ||
}, | ||
{ | ||
"id": "mapping", | ||
"label": "Response mapping" | ||
} | ||
] | ||
} | ||
] |
41 changes: 41 additions & 0 deletions
41
test/spec/provider/cloud-element-templates/properties/CustomProperties.groups.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,41 @@ | ||
<?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:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_165ah7c" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.13.0-nightly.20220113" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="1.3.0"> | ||
<bpmn:process id="Process_0vvlc66" isExecutable="true"> | ||
<bpmn:serviceTask id="ServiceTask_1" name="groups" zeebe:modelerTemplate="example.com.grouping"> | ||
<bpmn:extensionElements> | ||
<zeebe:taskDefinition type="http" /> | ||
<zeebe:taskHeaders> | ||
<zeebe:header key="method" value="get" /> | ||
<zeebe:header key="url" /> | ||
</zeebe:taskHeaders> | ||
<zeebe:ioMapping> | ||
<zeebe:input source="= invoiceDetails" target="body" /> | ||
<zeebe:output source="= body" target="response" /> | ||
</zeebe:ioMapping> | ||
</bpmn:extensionElements> | ||
</bpmn:serviceTask> | ||
<bpmn:serviceTask id="ServiceTask_noDefault" name="no default" zeebe:modelerTemplate="example.com.grouping-noDefault" /> | ||
<bpmn:serviceTask id="ServiceTask_noGroups" name="no groups" zeebe:modelerTemplate="example.com.grouping-noGroups" /> | ||
<bpmn:serviceTask id="ServiceTask_nonExisting" name="non existing group" zeebe:modelerTemplate="example.com.grouping-nonExisting" /> | ||
<bpmn:serviceTask id="ServiceTask_noEntries" name="no entries" zeebe:modelerTemplate="example.com.grouping-noEntries" /> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_0vvlc66"> | ||
<bpmndi:BPMNShape id="Activity_1328y3k_di" bpmnElement="ServiceTask_1"> | ||
<dc:Bounds x="270" y="77" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="ServiceTask_noDefault_di" bpmnElement="ServiceTask_noDefault"> | ||
<dc:Bounds x="270" y="190" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="ServiceTask_noGroups_di" bpmnElement="ServiceTask_noGroups"> | ||
<dc:Bounds x="270" y="310" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="ServiceTask_nonExisting_di" bpmnElement="ServiceTask_nonExisting"> | ||
<dc:Bounds x="270" y="420" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="ServiceTask_noEntries_di" bpmnElement="ServiceTask_noEntries"> | ||
<dc:Bounds x="270" y="540" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
Oops, something went wrong.