Question

I am trying out a mashup of Alfresco and ProcessMaker. I intend to use Alfresco's document management capabilities over ProcessMaker.

Here is the scenario:

A user fills up a form in ProcessMaker and a file is uploaded in Alfresco.

I followed the wiki in this link. The problem is that, my result variable is always false. I also checked my input. I am able to access Alfresco via the address I provided, but it still does not work. I also ensured that the file exists in my directory.

Is there a way I can check (probably from logs or console) the error being returned by Alfresco or ProcessMaker so I can continue?

Update: Alfresco is installed in a Japanese version of Windows 7. Alfresco version is 4.2.c. Process Maker version is 2.0.45.

Was it helpful?

Solution

I have no experience with ProcessMaker, but here's a couple of things you can try to investigate your issue:

  • inspect the network traffic between ProcessMaker and Alfresco (e.g. with Wireshark) to see if there's any hint available in the HTTP responses from Alfresco
  • enable DEBUG logs on Alfresco side
  • as far as I can see, ProcessMaker users Alfresco CMIS REST APIs to implement its triggers. Have a look at class.pmAlfrescoFunctions.php in ProcessMaker and try the calls yourself with some REST client (e.g. curl, Chrome REST console, htty)

This should give you an idea of what's going wrong in your case.


UPDATE

After reading that the Japanese language pack changed a folder name from "Sites" to "/サイト", and double checking the Alfresco triggers code, it's indeed the case that localized versions of Alfresco are not supported OOTB by ProcessMaker, which hardcodes "Sites" in its CMIS queries.

While the workaround provided by @nmenego would be enough in most cases, I opened a bug to ProcessMaker to let them know of the limitation.

OTHER TIPS

I discovered that the problem was in the encoding used by my installed Alfresco. Instead of the default folder /Sites, the default directory was /サイト (sites in Japanese). Apparently, upon installation, the names of the default folders are translated to Japanese.

What I did was I added a folder named /Sites, and it all works now. Of course, the points pointed out by skuro are all valid as well.


We just confirmed that this is a bug in the ProcessMaker connector triggers for Alfresco, thank you for reporting it.

I've just opened ticket 11003 in ProcessMaker's Main Support Portal for the developers to work on fixing it.

Please register for free in ProcessMaker's Main Support Portal in order to follow up on the resolution of this bug.

Best regards,

Arturo A. Robles
Customer & Partner Support Manager
Colosa Inc. - ProcessMaker

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top