因此,我使用Mule来抓取放入文件夹的文件,并且我想通过CMIS连接器将这些文件推送到Alfresco。我有Alfresco启动并运行,但在尝试移动文件时,我一直在Mule中遇到错误。下面是我的流程:Mule ESB使用CMIS连接器将文件移动到Alfresco
<?xml version="1.0" encoding="UTF-8"?>
<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="
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
http://www.mulesoft.org/schema/mule/cmis http://www.mulesoft.org/schema/mule/cmis/current/mule-cmis.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 ">
<cmis:config name="CMIS" username="*****" password="*****" repositoryId="6ddd8d97-e591-4327-bdaf-3e7be8604273" baseUrl="http://localhost:8080/alfresco/service/api/cmis"
doc:name="CMIS"/>
<flow name="createDocumentFlow" doc:name="createDocumentFlow">
<file:inbound-endpoint path="/home/administrator/Downloads/Output" responseTimeout="10000" doc:name="File"/>
<cmis:create-document-by-path filename="#[header:originalFilename]" folderPath="/Sites"
mimeType="application/pdf" objectType="cmis:document" versioningState="NONE" config-ref="CMIS" doc:name="CMIS"/>
</flow>
</mule>
我在做什么错在这里?
您能否将异常添加到您的问题中? – genjosanzo
我们实际上得到了一个关于不接受字节数组或文件流的例外,但我们通过执行Object-to-ByteArray转换(谁知道)来修复它。 – Thaneofife