Dynamically (through Process variable + logic/script) determine Call Activity BPMN to be called?

Dynamically (through Process variable + logic/script) determine Call Activity BPMN to be called?

Is there any impacts that would come from dynamically calling a specific BPMN file?

Example maybe a DMN runs to determine which BPMN to use with a Call activity and the Called Element is the output from the DMN.

Thoughts?

(Have not tested, just asking if anyone see issues)

Hi Stephen,

you can use an expression for the calledElement attribute of the call activity. So it’s possible to resolve the process definition key dynamically and pass it via process variable or call a bean.

Best regards,
Philipp

@Philipp_Ossler you don’t see any semantic issues? Technically it is possible, but does it make sense in the BPMN spec usage or in just following along in a process?

Hi Stephen,

IMO, you should use a static reference to the called process since it makes it easy to understand the process. Otherwise, it can be confusing and the process is less predictable. But I think there are some edge cases where you need this flexibility. So it’s up to you if you want to use it or not :wink:

Best regards,
Philipp

1 Like

Thanks. Appreciate the info