Created
October 13, 2014 05:45
-
-
Save madaboutcode/c4051f9eae47e9c0cd22 to your computer and use it in GitHub Desktop.
Revisions
-
Ajeesh Mohan created this gist
Oct 13, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <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 hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <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>