question

Enrique Elizaga avatar image
0 Likes"
Enrique Elizaga asked Kavika F commented

Retrieve push time from list

Hi, I am pulling from a flowitem list in a process flow. Items are pushed into this list in the 3D model. I'm having trouble retrieving the push time from a token in the process flow later on, since "pushTime" is not a label.

1655300347463.png

FlexSim 22.1.2
lists
1655300347463.png (11.4 KiB)
· 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @Enrique Elizaga, was one of Jason Lightfoot's or Julio R's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·
Julio R avatar image
0 Likes"
Julio R answered Julio R commented

hello @Enrique Elizaga ,

I think the fastest way to do it is to set up a label in the Item when you push it to the list so you can retrieve in the processFlow

1655304672298.png

Something like this example:

pushTime Example.fsm


1655304672298.png (16.8 KiB)
· 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.

Enrique Elizaga avatar image Enrique Elizaga commented ·
@Julio R Is there a way to add that label directly as a push argument or expression? Items are pushed from many objects.
0 Likes 0 ·
Julio R avatar image Julio R Enrique Elizaga commented ·

You can modify the code in the List label to add it to the item, that way it will always do it no matter where it has been pushed from:

1655305263802.png

1 Like 1 ·
1655305263802.png (69.3 KiB)
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can add the list fields you want as labels to the SELECT of the pull query - then they get added to the puller automatically. Eg.:

SELECT age, pushTime WHERE age>30 ORDER BY age DESC


When that doesn't work check the list advanced setting to do this is still checked.

1655320937453.png


1655320937453.png (3.2 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.

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.