Pinned topic Loop connection in a mediation
In a mediation I make a service invoke. Based on the result on this service invoke I want to invoke the same service again( and again and...N).
After the service invoke I used a Message Filter and based on a value, I call the same service again. When I put the wire from the messagefilter to the service invoke, the following errormessage appears:
CWZMU0018E The 0 mediation flow contains a loop from an output terminal to the input terminal of an upstream mediation primitive or node.
How can I implement a loop in the mediation?
Thank for the answer in advance!
bmruter 110000S42H3 Posts
Re: Loop connection in a mediation2012-10-18T16:50:46ZThis is the accepted answer. This is the accepted answer.You cannot code a loop into a mediation flow. The closet you could get would be a fan out, which will fire a node once for each member of an array.
mmalc 10000036A974 Posts
Re: Loop connection in a mediation2012-10-25T12:12:25ZThis is the accepted answer. This is the accepted answer.
- bmruter 110000S42H
One way of doing this if the logic of your module will allow is to wiring up a reference of the mediation module back to an interface on the same module.
See if you get any mileage with this idea.
Arend 120000D3JB1 Post
Re: Loop connection in a mediation2013-06-12T07:41:14ZThis is the accepted answer. This is the accepted answer.
search for "loop" in this article to learn how you can misuse the fan in / fan out for looping:
TrushkinAndrey 270003U6WV113 Posts
Re: Loop connection in a mediation2013-06-13T08:46:44ZThis is the accepted answer. This is the accepted answer.
You can use one of some possibilities:
1. You can use FanOut/FanIn primitives in iterative mode.
2. You can use some custom service. It will be flexible solution: some "lookup" primitive will find endpoint and you invoke it using custom code. You can use such solution in a lot of projects.