In the attached model I have created 5 tokens on source OnReset.
This makes the Process Flow not work well:
- At first, in the Event List I have 5 Delay Activity StepStartActivityEvent (this is the origin of the problem)
- Then, going on step by step, 5 TimerEvents are created for the 5 tokens and the first StepStartActivityEvent is deleted
- Then other 4 TimerEvents are created and another StepStartActivityEvent is deleted
- Another 3 TimerEvents are created and another StepStartActivityEvent is deleted
- Another 2 TimerEvents are created and another StepStartActivityEvent is deleted
- Finally another TimerEvent is created and the last StepStartActivityEvent is deleted
This problem doesn't happen when I create the 5 tokens in the same time but in different events such as OnExit trigger of 5 different items. But it happen if I create a token OnCreation for 5 items created in the same simulation time. Is it a bug that will be solved or there are some rules to apply on tokens creation through code?