01-16-2018 03:23 AM
The rule should trigger if the Name of the file starts with test OR test2 and if so move file to another folder.
01-17-2018 04:11 PM
„Begins with test OR test2“ is the same as „begins with test“
So you won‘t need any OR condition
if you need a more complex condition, you could use „Execute script“ and put your condition in the javascript code.
01-18-2018 02:34 AM
Hi Martin, thanks for an answer and help.
Test and Test2 was a bad example :-). Made a script and it is working like it should.
Thanks, Phil
01-18-2018 04:19 AM
Another ugly way would be to duplicate the script but use different trigger „begins with“.
This is not only ugly but also error prone as we can see using your (now it’s a good example ) example. Both scripts would be triggered.
01-18-2018 06:09 AM
My Script use a array within the possible "begins with" and it checks in a for loop the filename against the array with a regex. If its true then move the file to another folder. Is this ugly too? Or is there a better solution?
01-18-2018 06:18 AM
I‘m shure there are a lot of good solutions we both are not thinking of - but yours sounds like it‘s ok and using an array for the regexes make it easy to understand (better than building a single regexp with a lot of OR conditions)
Explore our Alfresco products with the links below. Use labels to filter content by product module.