Skip to content

Instantly share code, notes, and snippets.

@rashedtalukder rashedtalukder/polling.xml
Last active Dec 12, 2017

Embed
What would you like to do?
Polling with Watermarks quiz
<?xml version=""1.0"" encoding=""UTF-8""?>
<mule xmlns:twitter=""http://www.mulesoft.org/schema/mule/twitter""
xmlns:tracking=""http://www.mulesoft.org/schema/mule/ee/tracking"" xmlns:dw=""http://www.mulesoft.org/schema/mule/ee/dw"" 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:spring=""http://www.springframework.org/schema/beans""
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance""
xsi:schemaLocation=""
http://www.mulesoft.org/schema/mule/twitter http://www.mulesoft.org/schema/mule/twitter/current/mule-twitter.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/ee/dw http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd
http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd"">
<http:listener-config name=""HTTP_Listener_Configuration"" host=""0.0.0.0"" port=""8081"" doc:name=""HTTP Listener Configuration""/>
<twitter:config name=""Twitter__Configuration"" accessKey=""<access_key>"" accessSecret=""<access_secret>"" consumerKey=""<consumer_key>"" consumerSecret=""<consumer_secret>"" doc:name=""Twitter: Configuration""/>
<flow name=""championsFlow1"" processingStrategy=""queued-asynchronous"">
<poll doc:name=""Poll"">
<fixed-frequency-scheduler frequency=""1000""/>
<watermark variable=""lastId-1"" default-expression=""-1"" selector=""FIRST"" selector-expression=""#[payload.id]""/>
<twitter:get-user-timeline-by-screen-name config-ref=""Twitter__Configuration"" screenName=""MuleSoft"" doc:name=""Twitter""/>
</poll>
</flow>
</mule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.