cancel
Showing results for 
Search instead for 
Did you mean: 

Workflows/custom actions and antivirus

ltendi
Champ on-the-rise
Champ on-the-rise
Hi, I read that it is possible to setup a custom action to scan file on upload and eventually send e-mail in case of infected file.
I would like implement this kind of action but I would like to force the action on all the spaces.
As far as I understood the action is on space based. How can I force this action on all the Alfresco's spaces? How can force the action also on the new created spaces?
Thank you
Luciano
2 REPLIES 2

bookworm2113
Champ in-the-making
Champ in-the-making
You could add a behavior to node creation. I haven't done it yet but I know its possible. Check out this package org.alfresco.repo.policy in the sdk and chapter 3 in the Alfresco Developer book. I think that chapter deals with working with content programatically. Let us know how far you go.

joreun
Confirmed Champ
Confirmed Champ
I would like to reactivate this post.
I currently use the http://wiki.alfresco.com/wiki/Antivirus implementation.
The best simple way to activate this antivirus action is by using an Alfresco rule.
So, I put a rule at "Sites" level that is called on docnumen creation and update and when the "content of type" is equal to "content".

This is working perfectly for documents that are uploaded in document library (I am using share interface).
BUT this has the effect to generate a crash when creating something in "calendar" for example.

Does somebody know how to restrict a rule for document nodes that are only in the document library ?

Thank you.