I am trying to repeat a stage based on the workflow of said stage. Meaning the user works on the stage and at one point decides if it is necessary to repeat the stage.
Right now i am trying to accomplish this by setting a variable inside this stage so that the repetition rule evaluates to true. This does not work, it seems the problem is that the repetition rule is only evaluated at creation, so it is not possible to repeat it after the stage goes active.
However it seems to work when the repetition variable is true by case instantiation, but then a new stage instance is created whenever an arbitrary variable is added or changed.
Perhaps a CMMN expert can make sense of this, i cannot. If necessary, i can supply an example with unit test to visualize this problem.