question

Gulati avatar image
0 Likes"
Gulati asked Jeff Nordgren commented

label

dummy-model.fsm.

In attached model there is two processors and two queues. logic which I want from here is at queue 2 a batch of 50 reached from source 2 and one by one processor1 is processing from queue1 then in queue 3 a batch of 500 came from source 3 and processor2 must get 16 item from queue2 at once and process with one item coming from processor1.

Choose One
label logic
dummy-model.fsm (16.8 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

Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Jeff Nordgren commented

It sounds to me that what you're looking for instead of a Processor for processor2 is rather a combiner that takes 1 item from the source2 lane, and batches it with 16 items from the source3 lane. Also, IN order to get the 50 and 500 coming from source2 and source3, I changed the sources to be scheduled sources on repeat instead of inter-arrival sources. (I'm not sure what you were looking for there, but if you want to change the times that those parts come in, you can edit the arrivals table in either sources.)

Here's your model with my proposed changes.

10032-dummy-model.fsm


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

Gulati avatar image Gulati commented ·

@Sam StubbsThanks for your response. With combiner yeah it is possible(it could be lengthy process) . But i was looking to build some logic in label tab of processors/Queue. If something with label edit is possible that could be more fast solution.

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren Gulati commented ·
@Ravi C

I'm not sure I understand your response to @Sam Stubbs regarding the use of a combiner making it a "lengthy process". I'm not sure what that means or how using a combiner as a solution would make anything more "lengthy". In fact, using the combiner for what you describe is not only the better way to go but I would also think the "fastest" way as well. It seems to me that you are trying to re-invent the wheel by using labels or other methods to do what the combiner does inherently instead of just using the combiner that will do all that "other work" it would take to make your solution work.

So you may have to explain a little more why you think a combiner is not the right solution.

Thanks.

0 Likes 0 ·
Gulati avatar image Gulati Jeff Nordgren commented ·

@Jeff Nordgren. your point is correct it is not soo much lengthy process(just combining). just i wanted to keep processor as it is and was trying a new way to satisfy my model logic. i was trying to solve it by edit some label of processor and queue. still problem is unsolved.

0 Likes 0 ·
Show more comments