camunda / element-templates-json-schema

JSON Schema for (Camunda) Element Templates
10 stars 7 forks source link

Allow multiple property conditions #91

Closed smbea closed 1 year ago

smbea commented 1 year ago

What should we do?

Extend "property.condition" definition to allow multiple conditions using "AND" concetenation.

Example:

"condition": {
   "allMatch" :
    [
       {
          "property": "property_A_",
           "equals": "propertyValueA"
        },
        {
          "property": "property_B_",
          "equals": "propertyValueB"
        }
     ]
}

The current implementation of condition should still work.

Why should we do it?

Allow properties to depend on more than one property thus improving template usage


Child of https://github.com/bpmn-io/bpmn-js-properties-panel/issues/817