I am trying to implement the following case, in the context of a simple “restaurant” example:
- the user can notify that “a customer has arrived” (this user event has repetition enabled, without any rule)
- when the event occurs, my only stage in the case is enabled; it also has repetition enabled
- in the stage, there are “Take order” and a “Prepare food” human tasks; I have a sentry on “Prepare food”, to enforce a sequence between the tasks
I expected, using the flowable ui, to be able to click several times on the “A customer has arrived button” and to see a “Take order” task appear in my list every time. That works. I expected that when clicking on completing ONE of the “Take order” task, then ONLY ONE of the “Prepare food” tasks would be activated. This is not the case: as soon as I complete one task, ALL of the “Prepare food” tasks are enabled and appear in my inbox.
Is this the expected behavior?
If yes, what is the proper way to model my case? I am playing the idea of using a “Case Task” instead of a stage, but that would make the modeling/diagrams cumbersome.