question

Cindy avatar image
0 Likes"
Cindy asked Jason Lightfoot commented

Staytime of an object in process flow

Hi, I am looking to simulate a blood bank, and i want to get the satytime of the products that enter the model to decide if i have to throw them or if i can use them. So, I wanted to know how to put in processflow in a decide activity the staytime of an specific object.

FlexSim 23.1.1
processflowdecidestaytime
· 1
5 |100000

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

Julie Weller avatar image Julie Weller commented ·

Hi @Cindy, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

Staytime stats usually refer to the time in a process flow activity or a 3D object. For your case, just record the creation/ entry time as a label on the token/item and then in the decide use

time()- token.entryTime

or

time()=token.item.entryTime

or push onto a list and add an expression for time()-pushTime for time it's been there.

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

Thank you, the thing is that i need to decide after the exact 7200 seconds if i want the tokens to go to a sink or if to push them to that list, because the model i want to create is based on perishble products, so if one them passes that specific time i will need to discard it, but if that does not happen i need it to go to another queue.

Something like this:

1694571620407.png

I need to decide if the object is still able to process or if it has to go to queue 2 just when its age hits 7200 seconds in the model

0 Likes 0 ·
1694571620407.png (89.8 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Cindy commented ·
This has not been answered in your new question. Please try to avoid asking duplicate questions as it consumes resources multiple times.
0 Likes 0 ·