question

gilbert jerald avatar image
0 Likes"
gilbert jerald asked Matt Long answered

how to create first available flow in process flow model?

1) in my model 5 types of labels are created the problem is how to make the flow such that the token move to the first available counter , but at the same time one token should enter into the counter for processing for this i use push pull strategy for allowing only one token to enter into each counter but the push pull strategy is not working it pulls the token but not pushing the token how to rectify this problem .i have attach my model for your referenceairport-pf-model.fsm

thank you

Choose One
first avaliable in process flow
5 |100000

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

1 Answer

Matt Long avatar image
1 Like"
Matt Long answered

The model you've created looks like it's not trying to send to the first available. The token receives a random item type when it's created and you're trying to send it to a counter based upon that item type.

Here are a couple of options for how I would handle first available. The first uses a push and pull from list. I first create a token that represents each counter and push it to a list. Then incoming customers pull from that list to get an available counter. If none are available, they will wait until the first one frees up.

The second example uses a Resource where the Resource is an array of integers (1, 2, 3 and 4). The incoming customers then acquire a counter from the Resource and release it when they're done.

Both of these models work exactly the same way, except that one uses a Resource and one uses a List.

You may want to go through all of the Process Flow tutorials. That should help you understand how the different activities work and the different shared assets.

counter-example.fsm


counter-example.fsm (24.3 KiB)
5 |100000

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