question

Rohith V avatar image
0 Likes"
Rohith V asked Jeanette F edited

Single zone with multiple entry point

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.

FlexSim 21.1.0
flexsim 21.1.0
zone-question.jpg (65.1 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Benjamin W2 avatar image Benjamin W2 commented ·

Hi @Rohith V,

I think there is a way to do what you are asking, but I need to understand a little more about your process. For example, do you have to sink the token after you destroy the object? Could you simply destroy the object then immediately create a new one while the zone is acquired?

0 Likes 0 ·
Rohith V avatar image Rohith V Benjamin W2 commented ·

Hi Ben,

Yes, I have tried without a sink and it works since its a single loop. I was looking at a different option of adding a sink and wondering if there was a better way of limiting the number of tokens.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Rohith V,

From your response to Benjamin W2, it seems you may have a solution. Were you needing further help with this question? If so, can you please elaborate what you need help with?

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Rohith V avatar image Rohith V Jeanette F ♦♦ commented ·

Hi Jeanette,

I'm curious to know if I can use a zone when there is a sink involved? As shown in the screen shot with my initial post, can I make a zone to work when there is token sent to sink and a new token is created which is linked to the previous activity?

0 Likes 0 ·

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered Jeanette F edited

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.

Zone exit as proxy.fsm

Update: also any wait for event activities between the two blocks of activities can create a label that assigns the token.


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.