Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. <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">
  2. <http:request-config name="HTTP_Request_Configuration" host="localhost" port="8082" basePath="OKA" doc:name="HTTP Request Configuration"/>
  3. <spring:beans>
  4. <spring:bean id="transformador" name="Bean" class="evento.Transformador"/>
  5. </spring:beans>
  6. <db:mysql-config name="MySQL_Configuration" host="localhost" user="root" password="root" database="MuleTemp" doc:name="MySQL Configuration"/>
  7. <twitter:config name="Twitter__Configuration" accessKey="3044733376-CPeJ2VF89ewh01kxvA04Gv5YQMYMAvcXiY8NWoI" accessSecret="iqN2g73vLUqUFYU8HvmK3WLAw8MV3zrdXT0ygFIQmtjl1" consumerKey="xYayQTxtvA95rYkMEV4uUcS9j" consumerSecret="m9xgyJbIovYFvChopYy1Dg8IqINebJpyMObClHi5QogL53gxss" doc:name="Twitter: Configuration"/>
  8. <http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8082" basePath="update" doc:name="HTTP Listener Configuration"/>
  9. <flow name="smtptryFlow">
  10. <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
  11. <logger message="A partir de ahora se realizará el proceso para detectar movimiento." level="INFO" doc:name="Logger"/>
  12. <flow-ref name="smtptrySub_Flow" doc:name="Flow Reference"/>
  13. </flow>
  14. <sub-flow name="smtptrySub_Flow">
  15. <scripting:transformer doc:name="Motion detection">
  16. <scripting:script engine="jython" file="/home/pi/Proyecto_SD/prueba.py"/>
  17. </scripting:transformer>
  18. <scripting:transformer doc:name="Webcam + ImgUR">
  19. <scripting:script engine="jython" file="/home/pi/Proyecto_SD/imgur.py"/>
  20. </scripting:transformer>
  21. <set-payload value="#['Copernico is detected '+message.payload]" doc:name="Set Payload"/>
  22. <scatter-gather doc:name="Scatter-Gather">
  23. <twitter:update-status config-ref="Twitter__Configuration" status="#[message.payload]" doc:name="Twitter"/>
  24. <logger message="#[message.payload]" level="INFO" doc:name="Logger"/>
  25. </scatter-gather>
  26. <flow-ref name="smtptryFlow" doc:name="Flow Reference (loop)"/>
  27. </sub-flow>
  28. </mule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement