Hi
Try something like this in decide block
value of pallet label Type will be number of connector going from decide block
I would like to ask what is the principle
This is kind of a double label. It works by looking at the token, then the label "PulledItem" on the token, then the label "Type" that is on the "PulledItem." If you click on the token, you can see the labels in the properties window.
So here, the token.PulledItem label is a pointer to the Pallet that's being carried by the TaskExecuter and MOM Car.
When we add token.PulledItem.Type, we are now looking at a label on the PulledItem (or the pallet in the reference). If we click on the pallet, we can see its labels in the property window (Type has a value of 2).
So the "Send to Token" in the decide activity will either have a value of 1 or 2. The Decide activity will then send the token out one of its connectors, either 1 or 2 depending on what the item Type is.
Hi @霈倫 , was Tomasz MG's answer helpful? If so, please click the red "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 unaccept and comment back to reopen your question.