Can you provide a reference for that "destroy" function? Is something coming from the Java API?
https://hub.alfresco.com/t5/alfresco-content-services-hub/records-management-user-guide/ba-p/289598
This link shows the properties of some functions, including the rmarocessDestruction, which represents the destroy function. However when I try to get the boolean value of it, it returns undefined.
So you are using Record Management module with Enterprise (following the DOD 5015.2 structure).
In order to get the value of that property (rmarocessDestruction), the node type needs to a file plan (rma:filePlan).
Is your node of this type?
Yes, my node is a file plan.
And the result of the following line is null?
var destroy = document.properties["rma:processDestruction"];
That may indicate also false. Does this make sense?
my code is:
if (document.properties["rmarocessDestruction"] == true){
document.properties["rmc:TipoDeDocumento"] = "success";
}
else if (document.properties["rmarocessDestruction"] == false){
document.properties["rmc:TipoDeDocumento"] = "error";
}
else{
document.properties["rmc:TipoDeDocumento"] = "none";
}
document.save();
But it only changes to none.
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.