Upload a file to Alfresco 5.0
i tried to upload a file to alfresco 5.0 with the Alfresco 4.2 Connector.
I get many errors and i am not sure how to use the connector.
incommingDocument is defined as application/octet-stream on the workflow-lane (intern pdf-Document) the event into the step with the connector is set on finished. i have an external AlfrescoServer. Host: http://winalfresco01 Port: 8080 Username: admin Password: admin
UploadingFile *: $(incommingDocument) Filename: Description: MIME-Typ *: application/pdf DestinationFolder *: /User%20Homes/
When i click on Test i get an error like this:
java.lang.reflect.InvocationTargetException org.bonitasoft.engine.bpm.connector.ConnectorExecutionException: USERNAME=install | org.bonitasoft.engine.core.connector.exception.SConnectorException: org.bonitasoft.engine.connector.exception.SConnectorException: java.util.concurrent.ExecutionException: org.bonitasoft.engine.connector.exception.SConnectorException: org.bonitasoft.engine.connector.ConnectorException: org.bonitasoft.engine.bpm.document.DocumentNotFoundException: USERNAME=ConnectorAPIAccessorImpl | org.bonitasoft.engine.document.SDocumentNotFoundException: Document not found: $(incommingDocument) for process instance: -1
When i try to change the following: UploadingFile *: incommingDocument (as a Reference of the document)
i get the Message:
Not supported Parameter for testing: Inputparameter "fileObject" uses a not callable value. (it is difficult to translate the message)
Do you have any examples or hints for me?
as far as I know Afresco connectors are version specific and the 4.2 ones do not work for version 5. You will need to find newer versions of the connectors...but last I heard it was "...can you update them for us...".
Connectors are usually (though not always) supplied by the vendor of the target so - best to speak with Alfresco.
I'm currently using OpenKM for this functionality.