The rule should trigger if the Name of the file starts with test OR test2 and if so move file to another folder.
„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.
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
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.
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?
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)
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.