yrashk / bpxe.rs

Business Process eXecution Engine
Apache License 2.0
36 stars 10 forks source link

Problem: conditionExpression use of Expression type #2

Closed yrashk closed 3 years ago

yrashk commented 3 years ago

BPMN specification defines conditionExpression as tExpression (an underspecified informal expression) but they are routinely used in a different fashion to make them executable.

https://www.omg.org/cgi-bin/doc?dtc/10-06-02.pdf shows the use of xsi:type to change the resolution of the type to tFormalExpression:

<conditionExpression xsi:type="tFormalExpression">
 ${getDataObject("TicketDataObject").status == "Open"}
 </conditionExpression>

Proposed solution: write own deserialization derivation (it's one of the proposed solutions for #1, too)