Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <mule xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:twitter="http://www.mulesoft.org/schema/mule/twitter" xmlns:metadata="http://www.mulesoft.org/schema/mule/metadata" xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:json="http://www.mulesoft.org/schema/mule/json" xmlns:smtps="http://www.mulesoft.org/schema/mule/smtps" 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.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/smtps http://www.mulesoft.org/schema/mule/smtps/current/mule-smtps.xsd http://www.mulesoft.org/schema/mule/json http://www.mulesoft.org/schema/mule/json/current/mule-json.xsd http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd http://www.mulesoft.org/schema/mule/twitter http://www.mulesoft.org/schema/mule/twitter/current/mule-twitter.xsd http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/current/mule-scripting.xsd http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd">
- <http:request-config name="HTTP_Request_Configuration" host="localhost" port="8082" basePath="OKA" doc:name="HTTP Request Configuration"/>
- <spring:beans>
- <spring:bean id="transformador" name="Bean" class="evento.Transformador"/>
- </spring:beans>
- <db:mysql-config name="MySQL_Configuration" host="localhost" user="root" password="root" database="MuleTemp" doc:name="MySQL Configuration"/>
- <twitter:config name="Twitter__Configuration" accessKey="3044733376-CPeJ2VF89ewh01kxvA04Gv5YQMYMAvcXiY8NWoI" accessSecret="iqN2g73vLUqUFYU8HvmK3WLAw8MV3zrdXT0ygFIQmtjl1" consumerKey="xYayQTxtvA95rYkMEV4uUcS9j" consumerSecret="m9xgyJbIovYFvChopYy1Dg8IqINebJpyMObClHi5QogL53gxss" doc:name="Twitter: Configuration"/>
- <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8082" basePath="update" doc:name="HTTP Listener Configuration"/>
- <flow name="smtptryFlow">
- <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
- <logger message="A partir de ahora se realizará el proceso para detectar movimiento." level="INFO" doc:name="Logger"/>
- <flow-ref name="smtptrySub_Flow" doc:name="Flow Reference"/>
- </flow>
- <sub-flow name="smtptrySub_Flow">
- <scripting:transformer doc:name="Motion detection">
- <scripting:script engine="jython" file="/home/pi/Proyecto_SD/prueba.py"/>
- </scripting:transformer>
- <scripting:transformer doc:name="Webcam + ImgUR">
- <scripting:script engine="jython" file="/home/pi/Proyecto_SD/imgur.py"/>
- </scripting:transformer>
- <set-payload value="#['Copernico is detected '+message.payload]" doc:name="Set Payload"/>
- <scatter-gather doc:name="Scatter-Gather">
- <twitter:update-status config-ref="Twitter__Configuration" status="#[message.payload]" doc:name="Twitter"/>
- <logger message="#[message.payload]" level="INFO" doc:name="Logger"/>
- </scatter-gather>
- <flow-ref name="smtptryFlow" doc:name="Flow Reference (loop)"/>
- </sub-flow>
- </mule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement