Created
October 13, 2014 05:45
-
-
Save madaboutcode/c4051f9eae47e9c0cd22 to your computer and use it in GitHub Desktop.
Mule dynamic flows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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