Hi,
I use a process flow ("Transportation Process Flow") in which the Task Executers are being pulled from a list at first, load and transport the items, and then are being pushed back to the list. The TEs are created using a process flow ("Task Executer Creation") and are being pushed to the TE List to be used by the first process flow. Now, I want to create the Task Executers one by one, and each creation should be at the same time the item needs to be loaded.
For this, I thought of a Process flow ("Schedule TE Creation") which creates one token at time 0, and sends it to a wait for event activity. Whenever a request for a TE arrives at the TE list, the token proceeds the next activity which is create object. Then using a Decide activity, the token decides if the number of TEs that are created in the process flow has reached the required number (Using two Process Flow Labels.) If that is the case, then the token sinks after pushing the last TE to the list. If not, The token goes back to the Wait for event activity and cycles again in the process flow.
When I tested this process flow, the token never leaves the Wait for event activity. When I Delete the decide activity, the token then never leaves the push to list activity, and it won't cycle in the process flow. I tried the "use max timer" with zero wait time option, and "Keep on Early Release", but it didn't work. I have attached an example of what I use, and what the new process flow would possibly look like. I would appreciate any ideas or suggestions than can solve this problem.
Thanks. eventtriggered-te-creation.fsm