cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a business rule

sun_09
Champ in-the-making
Champ in-the-making
Hi,
I want use Alfresco to delivery the paychecks to employees.

So, I have to upload documents pdf where the name file matches
user name and then move files automatically to a specific space of the user.
I have about 1000 user, so Is it possible create a general business rule
that runs this action?
Or is it needful create one rule for each user space (about a thousand)?  :shock:

Many Thank!
1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator
Are the specific user spaces in a common parent folder? If so, rules can be inherited from their parent. You can define the rule once in the parent folder, tell it to apply to sub-folders, and you'll have what you need. Obviously, the logic in your rule, probably JavaScript, will need to inspect the name of the document and then execute the move action with the appropriate target folder, but that's a very straightforward script to write.

Jeff