03-28-2017 09:51 AM
I tried to create a rule, as in the figure below,
but I do not know what to put in the field for the attribute
to receive the current date every time it enters a folder.
03-29-2017 01:22 AM
I use the option "execute script" for the rule.
If the document already has the property you want to set to "today", let's say it is dms:today which has type date:
document.properties["dms:today"]=new Date();
document.save();
not sure if document.save() is really needed.
If you have to add a custom aspect called "dms:yourAspect" and set the date:
var props=new Array();
props["dms:today"]=new Date();
document.addAspect("dms:yourAspect", props);
The script has to reside in the Data Dictionary in subfolder scripts.
Explore our Alfresco products with the links below. Use labels to filter content by product module.