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.

Jeff Nordgren avatar image Jeff Nordgren commented ·
@lucas.matheus

Can you send us your model or a sample model of the problem? It's much easier to understand what you are after that way and give you a more precise answer.

0 Likes 0 ·
lucas.m avatar image lucas.m Jeff Nordgren commented ·

Unfortunately I can't. The model data belongs to a company and the process is confidential, so I have not attached it.

0 Likes 0 ·

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.

Mischa Spelt avatar image Mischa Spelt commented ·

And if you have the operators in two different resources, you could even use the "Resource By Case" option of the Acquire activity.

0 Likes 0 ·
lucas.m avatar image lucas.m commented ·
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.