Topic
  • 4 replies
  • Latest Post - ‏2013-06-13T08:46:44Z by TrushkinAndrey
SystemAdmin
SystemAdmin
289 Posts

Pinned topic Loop connection in a mediation

‏2012-10-18T15:51:11Z |
Hi,

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!

-Fred
Updated on 2012-10-25T12:12:25Z at 2012-10-25T12:12:25Z by mmalc
  • bmruter
    bmruter
    3 Posts

    Re: Loop connection in a mediation

    ‏2012-10-18T16:50:46Z  
    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
    mmalc
    74 Posts

    Re: Loop connection in a mediation

    ‏2012-10-25T12:12:25Z  
    • bmruter
    • ‏2012-10-18T16:50:46Z
    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.
    Depends 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
    Arend
    1 Post

    Re: Loop connection in a mediation

    ‏2013-06-12T07:41:14Z  

    search for "loop" in this article to learn how you can misuse the fan in / fan out for looping:

    http://www.ibm.com/developerworks/websphere/library/techarticles/1108_toth/1108_toth.html

     

     

  • TrushkinAndrey
    TrushkinAndrey
    113 Posts

    Re: Loop connection in a mediation

    ‏2013-06-13T08:46:44Z  

    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.