Workflows: Enumeration in BPMN Pathway without DMN possible? Which Expression needed?

I have an exclusive gateway in an approval situation but the possible results are more than just true/false. They are approved/declined/needs re-editing. The user should consciously make a decision which is the accurate one as all three lead a different process step. This is a mandatory field. So I chose an enumeration for it.

I thought a DMN is a bit of an overkill. I modelled the exclusive gateway with 3 paths and now need to set up the right expression on the paths.

In the tutorial and docu I only found either examples with booleans and then the process variable turning to true or false or the usage of a DMN.

So my process variable is called TECApproval and the values it can have (user selects exclusively one of them) is approved, declined or re-edit.

So would {#DocumentModelName.Groupname.TECApproval ==“Approved”} be the right expression for the approved-path etc?

Or do I need a DMN if I have more than two paths?

Thanks and cheers

Sarah

Hi Sarah,

You don’t need DMN. The exclusive gateway can have an arbitrary number of outgoing edges.

Your expression looks (almost) fine, just make sure the # is in front:

#{DocumentModelName.Groupname.TECApproval=="Approved"}

Best,
Peter

P.S.: The syntax Camunda uses here is JUEL (Java Unified Expression Language), here are some additional examples: Unified Expression Language - The Java EE 5 Tutorial