question

ana ZI avatar image
0 Likes"
ana ZI asked Benjamin W2 answered

Combinar items de un solo tipo, conforme lleguen

Hola, tengo dos tipos de items, y quisiera que mi combiner hiciera packs de 4 unidades de un solo tipo (los primeros 4 de un tipo disponibles). ¿Tengo que usar Process Flow para esto ?

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

1 Answer

Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered

Hi @ana ZI,

There are many ways to accomplish this using process flow. I personally find it easier to use a Queue instead of a combiner. Here is an overview of my solution:

  1. Have both Queue2 and Queue3 push to a global item list.
  2. Delete the processor and create a Queue5 with a maximum capacity of 1.
  3. Create a Resource activity in process flow that is connected to your operator.
  4. Create a List activity that connects to the list described in step 1.
  5. Have a process flow Scheduled Source create 1 token.
  6. Have this token acquire the operator resource.
  7. Create a loop:
    1. This loop will use a Pull from List activity to pull from the list described in step 1 using a query. This query should look something like "WHERE Type = 1".
    2. Have the resource aquired in step 2 travel to Queue2 using a Travel activity.
    3. Use a Move Object activity to move all items pulled from step 6.1 to the operator.
    4. Use a Travel activity to have the operator travel to Queue5.
    5. Use a Move Object activity to move the items into the pallet. Refer to the pallet with the following command: "Model.find("Queue5").subnodes[1].as(Object)".
    6. Repeat these steps for Queue3.

Note, this will have Operator2 pull all 4 items at once. It is possible for him to pull one at a time with some small modifications.

Let me know if you have any questions!

combineprocessflow.fsm


5 |100000

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