-
Notifications
You must be signed in to change notification settings - Fork 197
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): add feel guidance
closes #606
- Loading branch information
Showing
4 changed files
with
202 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
19 changes: 19 additions & 0 deletions
19
test/spec/provider/cloud-element-templates/properties/CustomProperties.feel.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,19 @@ | ||
<?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_1" isExecutable="false"> | ||
<bpmn:userTask id="stringTask" name="Feel Task" zeebe:modelerTemplate="my.custom.FeelTask.String"> | ||
</bpmn:userTask> | ||
<bpmn:userTask id="textTask" name="Text Feel Task" zeebe:modelerTemplate="my.custom.FeelTask.Text"> | ||
</bpmn:userTask> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1"> | ||
<bpmndi:BPMNShape id="Task_0zadlfo_di" bpmnElement="stringTask"> | ||
<dc:Bounds x="79" y="53" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Task_2_di" bpmnElement="textTask"> | ||
<dc:Bounds x="250" y="53" width="100" height="80" /> | ||
</bpmndi:BPMNShape> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |
82 changes: 82 additions & 0 deletions
82
test/spec/provider/cloud-element-templates/properties/CustomProperties.feel.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,82 @@ | ||
[ | ||
{ | ||
"name": "Custom FeelTask with Strings", | ||
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", | ||
"id": "my.custom.FeelTask.String", | ||
"appliesTo": [ | ||
"bpmn:ServiceTask" | ||
], | ||
"properties": [ | ||
{ | ||
"label": "A FEEL expression", | ||
"type": "String", | ||
"feel": "optional", | ||
"editable": true, | ||
"binding": { | ||
"type": "property", | ||
"name": "optionalFeelProp" | ||
} | ||
}, | ||
{ | ||
"label": "A required FEEL expression", | ||
"type": "String", | ||
"feel": "required", | ||
"editable": true, | ||
"binding": { | ||
"type": "property", | ||
"name": "feelProp" | ||
} | ||
}, | ||
{ | ||
"label": "A Normal Input", | ||
"type": "String", | ||
"editable": true, | ||
"binding": { | ||
"type": "property", | ||
"name": "myCustomProp" | ||
} | ||
} | ||
], | ||
"entriesVisible": false | ||
}, | ||
{ | ||
"name": "Custom FeelTask with TextFields", | ||
"$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", | ||
"id": "my.custom.FeelTask.Text", | ||
"appliesTo": [ | ||
"bpmn:ServiceTask" | ||
], | ||
"properties": [ | ||
{ | ||
"label": "A FEEL expression", | ||
"type": "Text", | ||
"feel": "optional", | ||
"editable": true, | ||
"binding": { | ||
"type": "property", | ||
"name": "optionalFeelProp" | ||
} | ||
}, | ||
{ | ||
"label": "A required FEEL expression", | ||
"type": "Text", | ||
"feel": "required", | ||
"editable": true, | ||
"binding": { | ||
"type": "property", | ||
"name": "feelProp" | ||
} | ||
}, | ||
{ | ||
"label": "A Normal Input", | ||
"type": "Text", | ||
"editable": true, | ||
"binding": { | ||
"type": "property", | ||
"name": "myCustomProp" | ||
} | ||
} | ||
], | ||
"entriesVisible": false | ||
} | ||
] |
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