question

Cindy avatar image
0 Likes"
Cindy asked Cindy commented

specfic staytime of an object

How can i do that just when the age of the items in the global list hit 7200 to be transported to queue 2?

SIMULACION PROCESO SANGRE.fsmCurrently the items on RBC queue they are moved to queue 2 when another batch of items arrive to the RBC queue, or how can i doit in processflow.

FlexSim 23.2.0
global table3d modelstatetime
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Cindy commented

You would need to reevaluate the backorders of the list once the age passes the threshold. So, since you need to schedule some sort of event at that time anyway, you can also use it to trigger the transport.

In the attached model, the items are pushed to the list 7200s after they enter RBC through Process Flow and then pulled immediately by Queue2 (no query based on age).

simulacion-proceso-sangre-fm.fsm


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

Cindy avatar image Cindy commented ·

If the objects moved from that queue "ALMACEN RBC" to another new queue how can i do in a conditional decide that after the 7200 secons if the object is not in the first queue that token gets discarded.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Cindy commented ·

If you do not know the state of the item after 2 hours, you would use two checks: Check if the item still exists, then check if the item is still in the given queue.

objectexists(token.item) && token.item.up == Model.find("queueName")

Another (and in my opinion more elegant) solution is to have the token enter a Wait for Event activity with a maximum wait time of 2h. If the item exits within the 2h, the token leaves the activity through connector 1 and goes directly to the sink. If the wait time elapses, the token leaves through connector 2 and has the item transported to Queue2.

1694585692386.png

1694585739456.png

0 Likes 0 ·
1694585692386.png (17.4 KiB)
1694585739456.png (38.9 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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