cancel
Showing results for 
Search instead for 
Did you mean: 

Launching Rules with CIFS

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi All

We are trying to integrate a scaning capture system with Alfresco using CIFS.

What we would like to get is an integration that when a image gets in the scanner, the exit of the scanner goes directly to a folder in the pc connected to the scanner and the folder is mapped to a space in Alfresco using CIFS and as soon as the file gets into Alfresco a Type is assigned to it.

We have the integration done: We put the image in the scanner, press scan, the exit goes directly to the Alfresco folder using CIFS, however we are not able to assign the Alfresco Type to the Jpeg document.

To do so we have created an inbound rule which says that every time a "JPEG Image" document gets into the space the Type should be assigned to the document, but this does not happens with our integration.

I think the problem is as the scanner firstly creates a temp file in the exit folder and at the end of the process a jpeg file appears… seems that alfresco is not detecting when the jpeg file appears.

We have tried exporting the jpeg to a folder in the pc and then moving it to Alfresco using CIFS and works… but we would like to skip this step and perform the integration as explained.

Is there anything we are doing wrong??. Other option we have tought about is running an scheduled action every 15 mins that will check for JPEG files and will apply them the type… but this sounds to me quite complex for an easy purpose, dont you think?

Any ideas will be very welcome!! :wink:

Cheers Smiley Happy
3 REPLIES 3

jlabuelo
Champ on-the-rise
Champ on-the-rise
Hi there

Any ideas on how in this case we do not get the rules to work with we got our scanned documents directly from the scanner? Any suggestions to get this working this way?

Thanks a lot guys!!

jlabuelo
Champ on-the-rise
Champ on-the-rise
Sorry to ask again… but we are stucked over here.

As I have explained before, we have created a rule to be launched once a XML document arrives to a space using CIFS, the rule will call a process that should read the XML file and assign metadata values to other JPEG files that arrive to the same space using CIFS also (and always before the XML file arrives).

Problems seems to be that the scanner, first creates a temp XML file with extension "filename.xml.pwfl", then writes on it, and as last step it moves the name of the xml file to "filename.xml".

I have tried to lauch this process with a business rule, (I have tried it on no background and on background mode) but dont get it to work. However if I make the scanner to export the JPEG and XML files to a folder in my Windows PC, and then I move the files to the alfresco space using CIFS, the rule works 100% perfect.

Any ideas on how I can get to work the integration Scanner-CIFS-Alfresco Business Rule??

Thanks a lot, hope someone can help us here!!

Cheers

jlabuelo
Champ on-the-rise
Champ on-the-rise
Well I guess it is impossible to do it with Alfresco and CIFS. After a week searching and reading posts and documentation, I am not able to lauch the rule once the scanner sends the XML document (temp and final one) to Alfresco using CIFS. I have to export the files (jpg and XML) to a local folder and then move them manually to Alfresco…. Did not find other solution.