How does it work

How to build integration flow using u4ik.camel.mh component:

You need to add uri to out component inside integration flow i.e:

<route id="first"> <from uri="direct:start" /> <to uri="mh://{{uri}}"/> <to uri="mock:result"/> </route>

### This uri can be constructed in two ways either using sender/receiver pattern or actor/director.:

Sender:<MessageType>?eventType=<eventTypeValue>&eventTypeVersion=<eventTypeVersionValue>

  1. Use sender when you would like to post a message on specific topic on mh
  2. Message type should be either DocumentMessage or EventMessage (EventMessage will not have body)
  3. Examples: ``` sender:DocumentMessage?eventType=foo&eventTypeVersion=bar

    sender:EventMessage?eventType=foo&eventTypeVersion=bar ```

Director:<Director Identifier>?actor=<actorSourceSystem.Actor Identifier>&command=<notObligatoryCommandText>

  1. Use director when you would like to send message to specific actor on mh
  2. Director in integration flow is not expecting responses from actors
  3. Command parameter is not obligatory
  4. Examples: ```x director:foo?actor=bar.baz

    director:foo?actor=bar.baz&command=executeOrder66 ```