Skip to content

Instantly share code, notes, and snippets.

@edgars
Created May 6, 2014 18:50
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 edgars/48e0aafcbb6283d48757 to your computer and use it in GitHub Desktop.
Save edgars/48e0aafcbb6283d48757 to your computer and use it in GitHub Desktop.
<global-element name="json_to_case" type="http://www.mulesoft.org/schema/mule/ee/data-mapper/config" entity-id="DataMapper#2">
<properties>
<property name="name" value="json_to_case"/>
<property name="transformationGraphPath" value="json_to_case.grf"/>
<property name="auxiliary;index" value="6"/>
</properties>
</global-element>
<flow SubFlow="false" name="tweets" type="http://www.mulesoft.org/schema/mule/core/flow" entity-id="3410dee6-d10a-4c16-b8ed-6dd3f0bb74c9">
<properties>
<property name="initialState"/>
<property name="processingStrategy2"/>
<property name="processingStrategy"/>
<property name="bussinessEventsLabel"/>
<property name="tracking:enable-default-events"/>
<property name="auxiliary;index" value="7"/>
</properties>
<lane hadOnlyOneElement="false" index="0" isChoiceOtherwiseLane="false" entity-id="compartment-lane#1">
<graphicalData x="0" y="0" width="0" height="0"/>
<endpoint direction="Inbound" message-exchange-pattern="RequestResponse" name="HTTP" type="http://www.mulesoft.org/schema/mule/http/endpoint" entity-id="HTTP#1">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="port" value="8081"/>
<property name="host" value="localhost"/>
<property name="businessEventsLabel"/>
<property name="followRedirects"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/http/endpoint"/>
<property name="keep-alive"/>
<property name="contentType"/>
<property name="disableTransportTransformer"/>
<property name="password"/>
<property name="exchange-pattern" value="request-response"/>
<property name="tracking:enable-default-events"/>
<property name="ref"/>
<property name="httpLabel"/>
<property name="transformer-refs"/>
<property name="address"/>
<property name="encoding"/>
<property name="path" value="listmentions"/>
<property name="responseTransformer-refs"/>
<property name="method"/>
<property name="user"/>
<property name="mimeType"/>
<property name="responseTimeout"/>
<property name="auxiliary;index" value="8"/>
<property name="connector-ref"/>
</properties>
<description></description>
</endpoint>
<pattern name="Twitter" type="http://www.mulesoft.org/schema/mule/twitter/twitter-connector" entity-id="Twitter#2">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name=""/>
<property name="sinceId"/>
<property name="accessKey"/>
<property name="count"/>
<property name="page"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/twitter/get-mentions-timeline"/>
<property name="accessSecret"/>
<property name="config-ref" value="TwitterConnection"/>
<property name="auxiliary;index" value="9"/>
</properties>
<description></description>
</pattern>
<pattern name="Object to JSON" type="http://www.mulesoft.org/schema/mule/json/object-to-json-transformer" entity-id="Object to JSON#1">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="sourceClass"/>
<property name="returnClass"/>
<property name="ignoreBadInput"/>
<property name="encoding"/>
<property name="mapper-ref"/>
<property name="mimeType"/>
<property name="auxiliary;index" value="10"/>
</properties>
<description></description>
</pattern>
<pattern name="Logger" type="http://www.mulesoft.org/schema/mule/core/logger" entity-id="Logger#1">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="message" value="[TWITTER]"/>
<property name="category"/>
<property name="level" value="INFO"/>
<property name="auxiliary;index" value="11"/>
</properties>
</pattern>
</lane>
</flow>
<flow SubFlow="false" name="replyTwitt" type="http://www.mulesoft.org/schema/mule/core/flow" entity-id="219e1abc-bb1f-412f-86fb-a9c7e13dbfe6">
<properties>
<property name="initialState"/>
<property name="processingStrategy2"/>
<property name="processingStrategy"/>
<property name="bussinessEventsLabel"/>
<property name="tracking:enable-default-events"/>
<property name="auxiliary;index" value="12"/>
</properties>
<lane hadOnlyOneElement="false" index="0" isChoiceOtherwiseLane="false" entity-id="compartment-lane#2">
<graphicalData x="0" y="0" width="0" height="0"/>
<endpoint direction="Inbound" message-exchange-pattern="RequestResponse" name="HTTP" type="http://www.mulesoft.org/schema/mule/http/endpoint" entity-id="HTTP#2">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="port" value="8081"/>
<property name="host" value="localhost"/>
<property name="businessEventsLabel"/>
<property name="followRedirects"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/http/endpoint"/>
<property name="keep-alive"/>
<property name="contentType"/>
<property name="disableTransportTransformer"/>
<property name="password"/>
<property name="exchange-pattern" value="request-response"/>
<property name="tracking:enable-default-events"/>
<property name="ref"/>
<property name="httpLabel"/>
<property name="transformer-refs"/>
<property name="address"/>
<property name="encoding"/>
<property name="path" value="reply"/>
<property name="responseTransformer-refs"/>
<property name="method"/>
<property name="user"/>
<property name="mimeType"/>
<property name="responseTimeout"/>
<property name="auxiliary;index" value="13"/>
<property name="connector-ref"/>
</properties>
<description></description>
</endpoint>
<pattern name="Flow Reference" type="http://www.mulesoft.org/schema/mule/core/flow-ref" entity-id="Flow Reference#1">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="name" value="tweets"/>
<property name="auxiliary;index" value="14"/>
</properties>
<description></description>
</pattern>
<pattern name="JSON To JSON" type="http://www.mulesoft.org/schema/mule/ee/data-mapper/data-mapper-connector" entity-id="DataMapper#3">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="returnClass"/>
<property name="input-ref"/>
<property name="stream"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/ee/data-mapper/transform"/>
<property name="config-ref" value="json_to_json"/>
<property name="pipeSize"/>
<property name="auxiliary;index" value="15"/>
</properties>
</pattern>
<pattern name="Variable" type="http://www.mulesoft.org/schema/mule/core/variable-transformer" entity-id="Variable#1">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="variableName" value="Content-Type"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/core/set-variable"/>
<property name="value" value="application/json"/>
<property name="auxiliary;index" value="16"/>
</properties>
</pattern>
</lane>
</flow>
<flow SubFlow="false" name="html" type="http://www.mulesoft.org/schema/mule/core/flow" entity-id="72437283-81a9-4ae8-8e18-d8f130fb905d">
<properties>
<property name="initialState"/>
<property name="processingStrategy2"/>
<property name="processingStrategy"/>
<property name="bussinessEventsLabel"/>
<property name="tracking:enable-default-events"/>
<property name="auxiliary;index" value="17"/>
</properties>
<lane hadOnlyOneElement="false" index="0" isChoiceOtherwiseLane="false" entity-id="compartment-lane#3">
<graphicalData x="0" y="0" width="0" height="0"/>
<endpoint direction="Inbound" message-exchange-pattern="RequestResponse" name="HTTP" type="http://www.mulesoft.org/schema/mule/http/endpoint" entity-id="HTTP#3">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="port" value="8081"/>
<property name="host" value="localhost"/>
<property name="businessEventsLabel"/>
<property name="followRedirects"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/http/endpoint"/>
<property name="keep-alive"/>
<property name="contentType" value="text/html"/>
<property name="disableTransportTransformer"/>
<property name="password"/>
<property name="exchange-pattern" value="request-response"/>
<property name="tracking:enable-default-events"/>
<property name="ref"/>
<property name="httpLabel"/>
<property name="transformer-refs"/>
<property name="address"/>
<property name="encoding"/>
<property name="path" value="html"/>
<property name="responseTransformer-refs"/>
<property name="method"/>
<property name="user"/>
<property name="mimeType"/>
<property name="responseTimeout"/>
<property name="auxiliary;index" value="18"/>
<property name="connector-ref"/>
</properties>
</endpoint>
<pattern name="HTTP Static Resource Handler" type="http://www.mulesoft.org/schema/mule/http/static-resource-handler" entity-id="HTTP Static Resource Handler#1">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="defaultFile" value="bootstrap.html"/>
<property name="resourceBase" value="${app.home}/www"/>
<property name="auxiliary;index" value="19"/>
</properties>
</pattern>
</lane>
</flow>
<flow SubFlow="false" name="mentionsFromParam" type="http://www.mulesoft.org/schema/mule/core/flow" entity-id="bab85ddd-3abc-47e8-ae30-977716e78f6f">
<properties>
<property name="initialState"/>
<property name="processingStrategy2"/>
<property name="processingStrategy"/>
<property name="bussinessEventsLabel"/>
<property name="tracking:enable-default-events"/>
<property name="auxiliary;index" value="20"/>
</properties>
<lane hadOnlyOneElement="false" index="0" isChoiceOtherwiseLane="false" entity-id="compartment-lane#4">
<graphicalData x="0" y="0" width="0" height="0"/>
<endpoint direction="Inbound" message-exchange-pattern="RequestResponse" name="HTTP" type="http://www.mulesoft.org/schema/mule/http/endpoint" entity-id="HTTP#4">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="port" value="8081"/>
<property name="host" value="localhost"/>
<property name="businessEventsLabel"/>
<property name="followRedirects"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/http/endpoint"/>
<property name="keep-alive"/>
<property name="contentType"/>
<property name="disableTransportTransformer"/>
<property name="password"/>
<property name="exchange-pattern" value="request-response"/>
<property name="tracking:enable-default-events"/>
<property name="ref"/>
<property name="httpLabel"/>
<property name="transformer-refs"/>
<property name="address"/>
<property name="encoding"/>
<property name="path" value="from"/>
<property name="responseTransformer-refs"/>
<property name="method"/>
<property name="user"/>
<property name="mimeType"/>
<property name="responseTimeout"/>
<property name="auxiliary;index" value="21"/>
<property name="connector-ref"/>
</properties>
</endpoint>
<pattern name="Variable" type="http://www.mulesoft.org/schema/mule/core/variable-transformer" entity-id="Variable#2">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="variableName" value="usermention"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/core/set-variable"/>
<property name="value" value="#[message.inboundProperties['user']]"/>
<property name="auxiliary;index" value="22"/>
</properties>
</pattern>
<pattern name="Twitter" type="http://www.mulesoft.org/schema/mule/twitter/twitter-connector" entity-id="Twitter#3">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name=""/>
<property name="accessKey"/>
<property name="query" value="#[usermention]"/>
<property name="locale"/>
<property name="accessSecret"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/twitter/search"/>
<property name="since"/>
<property name="lang"/>
<property name="until"/>
<property name="geocode"/>
<property name="unit"/>
<property name="sinceId"/>
<property name="resultType"/>
<property name="radius"/>
<property name="config-ref" value="TwitterConnection"/>
<property name="auxiliary;index" value="23"/>
<property name="maxId"/>
</properties>
</pattern>
<pattern name="Object to JSON" type="http://www.mulesoft.org/schema/mule/json/object-to-json-transformer" entity-id="Object to JSON#2">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="sourceClass"/>
<property name="returnClass"/>
<property name="ignoreBadInput"/>
<property name="encoding"/>
<property name="mapper-ref"/>
<property name="mimeType"/>
<property name="auxiliary;index" value="24"/>
</properties>
</pattern>
<pattern name="Logger" type="http://www.mulesoft.org/schema/mule/core/logger" entity-id="Logger#2">
<graphicalData x="0" y="0" width="0" height="0"/>
<properties>
<property name="message" value="VALOR &gt;&gt;&gt;&gt; #[usermention]"/>
<property name="category"/>
<property name="level" value="INFO"/>
<property name="auxiliary;index" value="25"/>
</properties>
</pattern>
</lane>
</flow>
<flow SubFlow="false" name="salesforce_tickets" type="http://www.mulesoft.org/schema/mule/core/flow" entity-id="a4ef3c50-2145-4928-afc3-4dd7595341f2">
<properties>
<property name="initialState"/>
<property name="processingStrategy2"/>
<property name="processingStrategy"/>
<property name="bussinessEventsLabel"/>
<property name="tracking:enable-default-events"/>
<property name="auxiliary;index" value="26"/>
</properties>
<lane hadOnlyOneElement="false" index="0" isChoiceOtherwiseLane="false" entity-id="compartment-lane#5">
<graphicalData x="0" y="0" width="0" height="0"/>
<endpoint direction="Inbound" message-exchange-pattern="RequestResponse" name="HTTP" type="http://www.mulesoft.org/schema/mule/http/endpoint" entity-id="HTTP#5">
<graphicalData x="21" y="969" width="68" height="169"/>
<properties>
<property name="port" value="8081"/>
<property name="host" value="localhost"/>
<property name="businessEventsLabel"/>
<property name="followRedirects"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/http/endpoint"/>
<property name="keep-alive"/>
<property name="contentType"/>
<property name="disableTransportTransformer"/>
<property name="password"/>
<property name="exchange-pattern" value="request-response"/>
<property name="tracking:enable-default-events"/>
<property name="ref"/>
<property name="httpLabel"/>
<property name="transformer-refs"/>
<property name="address"/>
<property name="encoding"/>
<property name="path" value="salesforce"/>
<property name="responseTransformer-refs"/>
<property name="method"/>
<property name="user"/>
<property name="mimeType"/>
<property name="responseTimeout"/>
<property name="auxiliary;index" value="27"/>
<property name="connector-ref"/>
</properties>
</endpoint>
<pattern name="Flow Reference" type="http://www.mulesoft.org/schema/mule/core/flow-ref" entity-id="Flow Reference#2">
<graphicalData x="149" y="969" width="95" height="67"/>
<properties>
<property name="name" value="tweets"/>
<property name="auxiliary;index" value="28"/>
</properties>
<description></description>
</pattern>
<pattern name="JSON To Case" type="http://www.mulesoft.org/schema/mule/ee/data-mapper/data-mapper-connector" entity-id="DataMapper#4">
<graphicalData x="502" y="969" width="87" height="67"/>
<properties>
<property name="returnClass"/>
<property name="input-ref"/>
<property name="stream"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/ee/data-mapper/transform"/>
<property name="config-ref" value="json_to_case"/>
<property name="pipeSize"/>
<property name="auxiliary;index" value="29"/>
</properties>
</pattern>
<pattern name="Salesforce" type="http://www.mulesoft.org/schema/mule/sfdc/sfdc-connector" entity-id="Salesforce#2">
<graphicalData x="649" y="969" width="68" height="67"/>
<properties>
<property name=""/>
<property name="proxyUsername"/>
<property name="securityToken"/>
<property name="proxyHost"/>
<property name="org.mule.tooling.ui.modules.core.widgets.meta.ModeAttribute" value="http://www.mulesoft.org/schema/mule/sfdc/create"/>
<property name="proxyPort"/>
<property name="type" value="Case"/>
<property name="password"/>
<property name="url"/>
<property name="username"/>
<property name="sessionId"/>
<property name="serviceEndpoint"/>
<property name="accessTokenId"/>
<property name="config-ref" value="Salesforce"/>
<property name="proxyPassword"/>
<property name="auxiliary;index" value="30"/>
<property-collection name="@http://www.mulesoft.org/schema/mule/sfdc/create-objectss;0">
<property name="ref" value="#[payload]"/>
<property name="isProcessed$$$$ " value="true"/>
<property name="auxiliary;wrapIn" value="31"/>
<property name="auxiliary;index" value="31"/>
</property-collection>
</properties>
<description></description>
</pattern>
<pattern name="Object to String" type="http://www.mulesoft.org/schema/mule/core/object-to-string-transformer" entity-id="Object to String#1">
<graphicalData x="777" y="969" width="98" height="67"/>
<properties>
<property name="returnClass"/>
<property name="ignoreBadInput"/>
<property name="encoding"/>
<property name="mimeType"/>
<property name="auxiliary;index" value="32"/>
</properties>
</pattern>
</lane>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment