question

lucas.m avatar image
0 Likes"
lucas.m asked lucas.m commented

How to create a logic to decide which operator to use in subflow?

My model have a SubFlow that causes an operator to carry a pallet truck. However, I wanted to evaluate the case where a Conveyor in the 3d model is full, operator 1 takes the pallet and if it is empty, operator 2 takes the pallet. How can I modify the "operator" resource in subflow to create this logic?

subflowresource assignmentoperator and resource
· 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

Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered lucas.m commented

Have a Decide activity in Process Flow where the "Send Token To" field is set as a conditional decide. Have the condition be:

content(node("ConveyorName", model())) >= X

Where X is the value you want to determine as "full" for the conveyor. IF it returns true, then have it go to a Process Flow block that acquires Operator 1, and executes his task logic. If it returns false then do the same but for Operator 2.

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