Announcement Announcement Module
Collapse
No announcement yet.
Any plans to support the ref attribute on the chain element? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Any plans to support the ref attribute on the chain element?

    I'm currently finding myself having to duplicate chains across different sources, for example
    Code:
    <chain id="inboundAppAChain">
    set of adapters, transformers,etc
    </chain>
    <chain id="inboundAppBChain">
    same set of adapters, transformers, etc
    </chain>
    it would be nice to be able to say:

    Code:
    <chain id="chain" ... />
    <chain ref="chain" request-channel="inboundAppAChannel" />
    <chain ref="chain" request-channel="inboundAppBChannel" />
    or something equivalent?

  • #2
    If I understand the use-case correctly, the easiest thing to do in the near term would be to add a bridge, e.g.:
    Code:
    <bridge input-channel="inboundAppAChannel" output-channel="chainInput"/>
    
    <bridge input-channel="inboundAppBChannel" output-channel="chainInput"/>
    
    <chain input-channel="chainInput">
        ...
    </chain>
    Or, perhaps after looking at the problem this way, there might be a way to just re-use the "chainInput" in multiple other places as an output-channel?

    Comment


    • #3
      Yes, that solution solves my problem nicely, thanks!

      Comment

      Working...
      X