AnsweredAssumed Answered

Driving Menus Using BPMN

Question asked by izaak on Nov 15, 2012
Latest reply on Nov 16, 2012 by jbarrez
I'm trying to drive my app's menu system via the process only, the first way to do this that occured to me was to find outgoing sequenceFlows for a given exclusive gateway.

Reading this post:Is this correct way to get outgoing transitions?, and this post Querying ExclusiveGateway and other gateways.

Leads me to believe that there is no intent for a given exclusive gateway to be able to find it's possible outoing sequenceFlows (or at least doing so is a bad idea). I believe i understand the desire for this - the sequenceFlow should be the things that determine which one is taken (so that they could be executed in parallel).

My idea is that I don't want to have to specify twice what the possible options are for any given exclusive gateway (i.e. in the menu, or in the user task, and in the criteria of the sequenceFlow itself). This would allow me to dynamically drive my process dependant only on the process itself (i.e. draw buttons for each sequenceFlow name, set process variables based on button pushed as the name of the sequenceFlow) Then if a user chooses to add additional sequenceFlows to a given gateway the UI doesn't have to be explicitly aware of it.

This to me seems very reasonable (mostly because it's about reducing duplication). Am I missing something?

Thanks for your time

Outcomes