question

Kari Payton avatar image
0 Likes"
Kari Payton asked Matthew Gillespie answered

Subflow changes label on 3D item

I'm using a task sequence sub flow as the transport option in Queue30. the issue I'm having is that the label "Type" on the item is changing, but I don't see what's causing it to do that. The source sets the Type by duniform(1,4). There isn't anything I can see that is changing the Type on the item. I'm trying to get all items Type = 1 or 2 to use TE from a list with partition ID 2 and all items Type 3 or 4 to use TE's with partition ID 1.

11553-warehouse-example-jn1-2.fsm

FlexSim 18.1.0
lists and resources
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

I searched your model for the word Type and found the following line of code in the Is Item Stored Upstairs? Decide activity:

if (token.pulled.Type = 3)

A single equal sign in FlexScript and other C-based languages is an assignment operator, so you're assigning the Type label the value of 3 rather than comparing the value to 3. You need to add a second equal sign to make it a comparison operator.

if (token.pulled.Type == 3)
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.