camunda / bpmnlint-plugin-camunda-compat

A bpmnlint plug-in for Camunda BPMN compatibility.
MIT License
0 stars 2 forks source link

feat: allow escalation events in Camunda 8.2 #73

Closed barmac closed 1 year ago

barmac commented 1 year ago

Related to https://github.com/camunda/camunda-modeler/issues/3318

barmac commented 1 year ago

This is now ready for review.

barmac commented 1 year ago

I need to adjust it. Let's state expression is not allowed only in case it's allowed for some version of Camunda. So no validation for catch events.

barmac commented 1 year ago

I removed the no-expression part completely. In C8, either escalation is disallowed at all or we can type expressions wherever the properties panel supports it.

barmac commented 1 year ago

On the other hand, the engine won't allow =myCode as a static escalation code:

Command 'CREATE' rejected with code 'INVALID_ARGUMENT': Expected to deploy new resources, but encountered the following errors:
'escalation-test.bpmn': - Element: BoundaryEventDefinition
    - ERROR: The escalationCode of the escalation catch event is not allowed to be an expression
- Element: StartEventDefinition
    - ERROR: The escalationCode of the escalation catch event is not allowed to be an expression
 [ deploy-error ]
barmac commented 1 year ago

Ready for review.