question

ged0313 avatar image
0 Likes"
ged0313 asked Jason Lightfoot commented

Label from Different Object Flow

Hello,

I've encounter some problem when using label from another object flow. My process flow is that I register the information of destination and groupname information on the processor object flow and make sure to put it back to list. As I try to use it in the AGV process flow to pull from the same list I found some problem to use the label. That it cannot find the destination of the label I set. I've tried several ways to mention the label, but it come up with the same problem. I'm wondering is there any setting that I missed. The attachment is the model I have problem with, thank you so much for any of suggestions!

my model: label problem.fsm

FlexSim 23.0.9
labelobject flow
label-problem.fsm (85.3 KiB)
· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @ged0313, was our answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered ged0313 commented

First of all your 'Load' processes need a reference of where to load from and the text "Item Container" appears to have been copy/pasted - which is not correct - that option needs to be selected from the list of options for that field.

Then your 'move to processors' activity is trying to find a reference destination on token.item1 which is an array of two items. In this case you will need to choose one of them eg.

token.item1[1].destination.
· 4
5 |100000

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

ged0313 avatar image ged0313 commented ·

Thank you so much! It is really helpful. After I fix this problem, I also find some problem with the split. I notice that only the first column of process flow is working. I've check the tutorial that the action of split will allow these activity to implement simultaneously. I am wondering if there is default setting that will first implement the left most process flow. Thank you!label problem.fsm

0 Likes 0 ·
label-problem.fsm (84.2 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦♦ ged0313 commented ·

I'd recommend either putting more labels so you can check what this evaluates to at a glance:

token.item2.up.as(Object).outObjects[1].subnodes.length > 0

Or debug the code by placing breakpoints therein and looking at the local variables and watch expressions (you add these to test 'phrases') .

Again you're trying to reference item1.up but token.item1 is an array of two items.

0 Likes 0 ·
ged0313 avatar image ged0313 Jason Lightfoot ♦♦ commented ·

Thank you so much! But after I did some review to the model. I found that for the destination, I have already set the label as:

  1. current.inObjects[1].

I am wondering if it is also needed to set the location of item again as you mentioned:

  1. token.item1[1].destination

I did some changes according to your advice. But I found that it still cannot get the label properly. After the model run for a while. It'll come up with the label does not exist error. But I'm not sure how I can solve this problem><

Thanks for your patience!

My model: 0807_small_autosave.fsm


0 Likes 0 ·
Show more comments