What is the equivalent of the "collected" parameter for a pull from list activity? I want to set a label equal to the number of items pulled from a list.
What is the equivalent of the "collected" parameter for a pull from list activity? I want to set a label equal to the number of items pulled from a list.
If you pull more than one item from a list then it stores it as an array. So you can use:
token.Pulled.length
EDIT
If you are using a max wait timer then you could pull nothing at all. To handle this then you could use the following code in your set labels activity:
if(token.Pulled? || token.Pulled? == NULL) return token.Pulled.length; else return 0;
Or in one line:
token.Pulled? || token.Pulled? == NULL ? token.Pulled.length : 0
7 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved