question

Zuleyma D avatar image
0 Likes"
Zuleyma D asked tannerp commented

Push from a list stop processor

Hello everebody,

I need

to stop my processor when 5 items had been processed, I used "process flow for a fixed resource".

I'm trying with "Push to a list" and I see that the labels were created but the processor never stoped.

Could you please help me with this topic?

You can see my model here:

Thanks a lot for your help and suggestions guys.

process flowprocessorpush and pull list
910.png (6.3 KiB)
listaejemplo.fsm (30.5 KiB)
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

·
Mason W avatar image
0 Likes"
Mason W answered Victor Alejandro HT commented

Hi Zuleyma,

The model attached is a potential solution to what you're looking for. It basically loops a single token around based off an "Index" label. Once that Index label hits 5 due to 5 items being processed it will cut off the processor.

possiblesolution.fsm

Hopefully this helps.


· 3
5 |100000

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

Zuleyma D avatar image Zuleyma D commented ·

Thanks a lot @Mason W That works!

Now I have another case and I hope you can help me, what can I do if I want to stop the processor when the queue has 5 items?

0 Likes 0 ·
Sebastian Hemmann avatar image Sebastian Hemmann Zuleyma D commented ·

I think you might only listen to the Entry of the Queue instead of the exit of the Processor!?

0 Likes 0 ·
Victor Alejandro HT avatar image Victor Alejandro HT commented ·

@Zuleyma D

I added a model representing the behaviour that you need. Let me know if this is exactly what you want.

stop-machine-base-on-queue-content.fsm

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.