diff --git a/resources/element-templates/new-fields.json b/resources/element-templates/new-fields.json new file mode 100644 index 0000000000..8c2f6ea9c3 --- /dev/null +++ b/resources/element-templates/new-fields.json @@ -0,0 +1,90 @@ + +{ + "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json", + "name": "Number and Boolean fields", + "id": "io.camunda.examples.numberAndBoolean", + "description": "A task using Number and Boolean fields", + "appliesTo": [ + "bpmn:ServiceTask" + ], + "properties": [ + { + "id": "number-static", + "type": "Number", + "value": "100", + "label": "number-static", + "binding": { + "name": "number-static", + "type": "zeebe:property" + }, + "feel": "static" + }, + { + "id": "boolean-static", + "type": "Boolean", + "value": true, + "label": "boolean-static", + "binding": { + "name": "boolean-static", + "type": "zeebe:property" + }, + "feel": "static" + }, + { + "id": "number-optional", + "type": "Number", + "value": "100", + "label": "number-optional", + "binding": { + "name": "number-optional", + "type": "zeebe:property" + }, + "feel": "optional" + }, + { + "id": "boolean-optional", + "type": "Boolean", + "value": true, + "label": "boolean-optional", + "binding": { + "name": "boolean-optional", + "type": "zeebe:property" + }, + "feel": "optional" + }, + { + "id": "number-required", + "type": "Number", + "value": "100", + "label": "number-required", + "binding": { + "name": "number-required", + "type": "zeebe:property" + }, + "feel": "required" + }, + { + "id": "boolean-required", + "type": "Boolean", + "value": true, + "label": "boolean-required", + "binding": { + "name": "boolean-required", + "type": "zeebe:property" + }, + "feel": "required" + }, + { + "type": "Text", + "value": "displayed when static is 100", + "binding": { + "name": "text", + "type": "zeebe:property" + }, + "condition": { + "property": "number-optional", + "equals": "100" + } + } + ] +}