question

David H3 avatar image
0 Likes"
David H3 asked Jordan Johnson commented

Hold token until activity content count drops below a certain number

  1. Hi there, I'm relatively new to Flexsim and probably have a very basic question.

With a wait for event, I'm trying to fire the tokens until the next activity contains more than 3 tokens. I posted my problem below. Specifically for this problem, I want my tokens to go through my process flow, create a subprocessflow and run through it until the "delay" activity in the subflow (not the whole subflow, only the activity, contains more than 3 tokens. Then all other incoming tokens should wait inside the "wait for event" until the count of tokens inside the delay drops below a certain value (3 or less in my case) again.

Thanks a lot for your help,

David

FlexSim 18.1.1
process flowwait for eventcontrol
5 |100000

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

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Jordan Johnson commented

Here is what I think you want (wait-for-event-problem-solution.fsm):

The Resource only has one available value, so only one token at a time can wait for the event. The Wait for Event is designed so that all waiting tokens, if they are waiting for the same event, move forward. We only want one token at a time to check (or that's the idea I get).

After adding the resource, I also changed the Wait for Event:

The change rule is set to "Decrease To Or Through Value", which means any change in content that sets it to 2 or below will move the token along. In addition, I checked the "Fire If Initial Value Meets Rule" box, so that any tokens arriving when the content is at or below 2 will not wait for the content to change before moving on.


· 2
5 |100000

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

Steven Hamoen avatar image
1 Like"
Steven Hamoen answered David H3 commented

@David H3 I think the easiest is to use a zone with a maximum of three. When one leaves the zone the next one can enter

· 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.