I'm trying to restrict the number of tokens with in an area (I can only have one token at any point of time). Since I have to destroy an object and send it to the sink, I'm not able to continue with the zone and the token has to exit the zone. I was checking to see if I can continue with the same zone after the new object is created but looks like they are considered as two different areas and I end up having 2 tokens. In the image attached is there a better way I can have only one token flow through the area highlighted.
Answer by Jeanette F ·
Hello @Rohith V,
For your process flow block on the left, is Event Triggered Source linked to the process flow block on the right? If so, then you could assign the a label in the Event Triggered Source to the token in the right block. This will allow the token on the left to exit the zone as a proxy for the token from the right process flow block.
I created a small example process flow for you to reference.
Update: also any wait for event activities between the two blocks of activities can create a label that assigns the token.