question

Eric D5 avatar image
0 Likes"
Eric D5 asked Matt Long edited

Date Time Source TokenIndex

Can I get a tokenIndex from a date time source? This variable seems to only be defined for Schedule Sources.

Alternatively, I'm using create tokens and a table lookup with creation rank.

FlexSim 20.1.2
flexsim 20.1.2datetimesourcetoken order
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

Matt Long avatar image
0 Likes"
Matt Long answered Matt Long edited

The only time tokenIndex would be valid is if an arrival has a token Quantity of > 1 and Arrival Spacing is set to At Scheduled Time and the Offset / Variability is set to None. Otherwise, tokens arrive at different times. Even with those properties all set as stated, tokens are created at the activity one at a time through their own creation events.

As you've suggested, I would suggest in order to get a tokenIndex using the Date Time Source, that you set the quantity to 1 and then use a Create Tokens activity to create the remaining tokens. Then you can assign the creationIndex to each one. (create as Independent Tokens) This could be with a table lookup or a label on the token created in the Date Time Source.

5 |100000

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