I might be misunderstanding it, but why not just one microflow that can be called by both roles and then in the microflow check the user role of the current user and based on that call the different subflows? Or am I missing the problem here?
Regards,
Ronald
I ended up creating a Java action that directs the user to the sub microflows, that way the user can be in the same transaction and yet entity access reapplies after they are already in the sub microflows.
// BEGIN USER CODE
if (this.Microflow == null || this.Microflow.isEmpty()) {
throw new IllegalArgumentException("Microflow name cannot be null or empty.");
}
if (this.__ContextObject == null) {
throw new IllegalArgumentException("Context object cannot be null.");
}
Core.microflowCall(this.Microflow)
.inTransaction(true)
.withParam("ContextObject", this.__ContextObject)
.execute(this.getContext());
return null;
// END USER CODE