question

dcorral avatar image
0 Likes"
dcorral asked dcorral commented

Decide activity based on array value

I need some help in sending tokens to a connection based on if the array contains a certain value.


In the attached model, I have a schedule source for token. They then go through a subflow acquiring the resources they need. Some tokens may only have one resource, some have 2. After acquiring resources, they then go through a decide activity (Decide Array in the model). The decide activity is to find out if the tokens have the resource "x2." If they have the resource, then they have to go through a delay before continuing on. I am having trouble using the "If Array Contains Value" on the decide activity.


Any help would be appreciated. Thanks.

FlexSim 23.2.3
proces flowarraydecide activity
· 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.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered dcorral commented

The values in the "resource" array will be pointers to the acquired objects. You need a pointer to the "x2" object, for example as a label on the token, to be able to compare the array values to it.

decide-by-array-example.fsm


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