Skip to content

Instantly share code, notes, and snippets.

@JordanSchuetz
Last active November 17, 2020 00:16
Show Gist options
  • Save JordanSchuetz/6edcf8f4cf58ce24f704d5d6215e2fde to your computer and use it in GitHub Desktop.
Save JordanSchuetz/6edcf8f4cf58ce24f704d5d6215e2fde to your computer and use it in GitHub Desktop.
multicastFlow.xml
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http"
xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/http
http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd">
<flow name="multicastFlow">
<http:listener doc:name="Listener" config-ref="HTTP_Listener_config" path="/multicast"/>
<set-payload value="#[max([min([attributes.queryParams.value as Number,100]),0])]" doc:name="Set Payload" />
<flow-ref doc:name="broadcastMessage" name="broadcastMessage"/>
<set-payload value='#["Message broadcasted !!!"]' doc:name="Set Payload" />
</flow>
</mule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment