Iterative flow with duplciating an atom

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
Thore
Posts: 16
Joined: Sunday 28 October, 2018 - 13:27

Iterative flow with duplciating an atom

Post by Thore »

Hi :)
I'm looking for a setup which can provide me the following functionality of duplicating atoms. It is something I have rutinely done in another simualtion program, but i'm not quite sure how to do it most effectively in ED:

1. One atom is genererated from a source
2. That atom goes into a queue, where a logic specifies the number of times the atom must be iterated (eg the number of products controlled in an inventory replenishemtn system
3. The atom is lead into a splitter, where it duplicates
4. One of the now two identical atoms are lead into the rest of the system ( eg. production system) wheras the other returns to the previously mentioned queue
5. the atom continious this iteration until the number of iteration is meet.

I have tried the obvious solution of using the splitter, but it does not work as it should and returns erros regarding "duplicate attribute names".

BR
Thore
User avatar
HarryBunnik
Posts: 362
Joined: Monday 07 February, 2011 - 11:22

Re: Iterative flow with duplciating an atom

Post by HarryBunnik »

Ha Thore,

Have you considered using the Batch functionality of the server atom (second tab)? Here you indicate that you have 1 in, B out and you can specify the batch size by directly referring to the label on the original product.

I hope this helps you.

Regards,

Harry
Post Reply