Advertisement
Guest User

Untitled

a guest
Mar 5th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <mule xmlns:cmis="http://www.mulesoft.org/schema/mule/cmis" xmlns:file="http://www.mulesoft.org/schema/mule/file" 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" version="CE-3.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
  4. http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
  5. http://www.mulesoft.org/schema/mule/cmis http://www.mulesoft.org/schema/mule/cmis/current/mule-cmis.xsd
  6. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
  7. http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd ">
  8. <cmis:config name="CMIS" username="*****" password="*****" repositoryId="6ddd8d97-e591-4327-bdaf-3e7be8604273" baseUrl="http://localhost:8080/alfresco/service/api/cmis"
  9. doc:name="CMIS"/>
  10. <flow name="createDocumentFlow" doc:name="createDocumentFlow">
  11. <file:inbound-endpoint path="/home/administrator/Downloads/Output" responseTimeout="10000" doc:name="File"/>
  12. <cmis:create-document-by-path filename="#[header:originalFilename]" folderPath="/Sites"
  13. mimeType="application/pdf" objectType="cmis:document" versioningState="NONE" config-ref="CMIS" doc:name="CMIS"/>
  14. </flow>
  15. </mule>
  16.  
  17. <?xml version="1.0" encoding="UTF-8"?>
  18.  
  19. <mule xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting"
  20. xmlns:cmis="http://www.mulesoft.org/schema/mule/cmis" xmlns:file="http://www.mulesoft.org/schema/mule/file" 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" version="CE-3.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
  21. http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
  22. http://www.mulesoft.org/schema/mule/cmis http://www.mulesoft.org/schema/mule/cmis/current/mule-cmis.xsd
  23. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
  24. http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
  25. http://www.mulesoft.org/schema/mule/scripting http://www.mulesoft.org/schema/mule/scripting/current/mule-scripting.xsd ">
  26. <cmis:config name="CMIS" username="*****" password="*****" repositoryId="6ddd8d97-e591-4327-bdaf-3e7be8604273" baseUrl="http://localhost:8080/alfresco/service/api/cmis"
  27. doc:name="CMIS"/>
  28. <flow name="createDocumentFlow" doc:name="createDocumentFlow">
  29. <file:inbound-endpoint path="/home/administrator/Downloads/Output" responseTimeout="10000" doc:name="File" />
  30. <object-to-byte-array-transformer mimeType="application/pdf" doc:name="Object to Byte Array"/>
  31. <cmis:create-document-by-path filename="#[header:originalFilename]" folderPath="/OCR"
  32. mimeType="application/pdf" objectType="cmis:document" versioningState="NONE" config-ref="CMIS" doc:name="CMIS"/>
  33. </flow>
  34. </mule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement