Skip to content

Instantly share code, notes, and snippets.

@madaboutcode
Created October 13, 2014 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madaboutcode/c4051f9eae47e9c0cd22 to your computer and use it in GitHub Desktop.
Save madaboutcode/c4051f9eae47e9c0cd22 to your computer and use it in GitHub Desktop.
Mule dynamic flows
<flow name="addFlow">
<http:inbound-endpoint keep-alive="true" exchange-pattern="request-response" host="localhost" port="${http.port}" path="add"/>
<transformer ref="httpToMapTransformer"/>
<message-properties-transformer scope="invocation">
<add-message-property key="contextName" value="#[map-payload:campaignName]" />
</message-properties-transformer>
<dynamicflows:add contextName="#[variable:contextName]">
<dynamicflows:configs ref="#[payload]" />
</dynamicflows:add>
</flow>
<flow name="runFlow">
<http:inbound-endpoint keep-alive="true" exchange-pattern="request-response" host="localhost" port="${http.port}" path="run"/>
<transformer ref="httpToMapTransformer"/>
<message-properties-transformer scope="invocation">
<add-message-property key="contextName" value="#[map-payload:campaignName]" />
</message-properties-transformer>
<dynamicflows:run contextName="#[variable:contextName]" flowName="act"/>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment