I have a process similar to a workflow, suppose it is:
- Training
- Eat
- Take your stuff to the basket
- Table cleaning
Now, what I want to do, even the user cancels the "Eat" event, which I want them to "Clear the table", the same applies to the stages "Prepare" and "Take your stuff to the basket."
Currently, in my implementation, I had to perform several checks, and sometimes I end up calling the Clear Table twice, and some other branching problems, when I add a couple more steps.
Is there any well-defined design pattern for working with such flows? (AFAIR was alone, I just can't remember his name.)
source
share