question

Ale avatar image
0 Likes"
Ale asked Ale commented

Label

2.jpg

Label is not working (see attached pic). I want the operator to drop it in two different queues? I have a label on the excel sheet that calls out a number 1 (Queue 1)or 2(queue 2 ) 1.jpg

FlexSim 17.1.4
labels
2.jpg (77.0 KiB)
1.jpg (27.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.

1 Answer

·
Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered Ale commented

Your Assign Labels activity should look like this:

EDIT: Updated the picture


labelassign2.png (14.3 KiB)
· 10
5 |100000

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

Ale avatar image Ale commented ·

I did what you suggested but I'm getting errors:

Flexscript Error MODEL:/Tools/ProcessFlow/ProcessFlow/Update destination~3>labels/1/2 Line 12 Undefined variable TestCordQueue being used.

Flexscript Error MODEL:/Tools/ProcessFlow/ProcessFlow/Update destination~3>labels/1/2 Could not resolve correct operator for construct operation. Left side type is Variant&, right type is (invalid)

Flexscript Error MODEL:/Tools/ProcessFlow/ProcessFlow/Update destination~3>labels/1/2 Line 14 Undefined variable TestSenQueue being used.

Flexscript Error MODEL:/Tools/ProcessFlow/ProcessFlow/Update destination~3>labels/1/2 Could not resolve correct operator for construct operation. Left side type is Variant&, right type is (invalid)

Flexscript Error MODEL:/Tools/ProcessFlow/ProcessFlow/Update destination~3>labels/1/2

I also tried

True: model().find("TestCordQueue").subnodes.length

False: model().find("TestSenQueue").subnodes.length

I get less errors

time: 11.777597 exception: Error: Invalid assign to reference at assign labels activity "Update destination" in "ProcessFlow"

time: 12.687597 exception: Error: Invalid assign to reference at assign labels activity "Update destination" in "ProcessFlow"

What Im I missing?

I also tried

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ Ale commented ·

@alejandra.n2 Just use the eye dropper to sample the TestCordQueue object.

0 Likes 0 ·
Ale avatar image Ale Jacob Gillespie ♦ commented ·

I did but not working. Got error:

time: 11.777597 exception: Error: Invalid assign to reference at assign labels activity "Update destination" in "ProcessFlow"

time: 12.687597 exception: Error: Invalid assign to reference at assign labels activity "Update destination" in "ProcessFlow"

0 Likes 0 ·
oga60.png (17.1 KiB)
Show more comments
Ale avatar image Ale commented ·

@Jacob Gillespie Sorry for going back and forth. I tried what you told me and its only going to one queue. Its acting like it doesn't need a validation label. I wonder if the label created in excel is wrong. am I calling out the label wrong?? see attached pictures

1.jpg2.jpg3-excel-decision.jpg

0 Likes 0 ·
1.jpg (149.4 KiB)
2.jpg (39.9 KiB)
3-excel-decision.jpg (184.7 KiB)
Jacob Gillespie avatar image Jacob Gillespie ♦ Ale commented ·

@alejandra.n2 Change the Condition field back to token.labels["Test Queue"].value

0 Likes 0 ·
Ale avatar image Ale Jacob Gillespie ♦ commented ·
@Jacob Gillespie

same outcome going to the same queue.

0 Likes 0 ·
1.jpg (34.9 KiB)
Show more comments
Ale avatar image Ale commented ·

@Jacob Gillespie Awesome!!!!!

0 Likes 0 ·

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.