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.

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

  1. time()- token.entryTime

or

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