question

daniel M13 avatar image
0 Likes"
daniel M13 asked Matt Long answered

how to accum flowitens before starting processing them?

i need to make the processor wait for 40 pieces to arrive (separately) and after that start processing for 50 minutes. Can anybody help me solve this?

processoraccumulation
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

Matt Long avatar image
0 Likes"
Matt Long answered

You could do this with a Processor alone, but it would likely require a bit of coding, or at least using some of the picklist options. Instead, I would suggest using a Queue and a Processor. The Queue has the ability to batch flowitems and then release a batch all at once.

I've attached a sample modeling showing how to do this. The queue has a batch size of 40. Once the batch has been collected, it will release all 40 flowitems to the processor (who has a max content of 40) and the processor will then process the items for 50 min.

batchflowitems.fsm

batchflowitems.fsm (17.1 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.