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
mmalc 10000036A974 PostsACCEPTED ANSWER
Re: Loop connection in a mediation2012-10-25T12:12:25Z in response to bmruterDepends if you can separate up the flows.
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 PostACCEPTED ANSWER
Re: Loop connection in a mediation2013-06-12T07:41:14Z in response to SystemAdmin
search for "loop" in this article to learn how you can misuse the fan in / fan out for looping:
TrushkinAndrey 270003U6WV111 PostsACCEPTED ANSWER
Re: Loop connection in a mediation2013-06-13T08:46:44Z in response to SystemAdmin
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.