04-25-2012 07:01 AM
for (var i = 0; i < bpm_package.children.length; i++)
{
logger.log(bpm_package.children[i]);
var doc = bpm_package.children[i];
logger.log("Name:" + doc.properties['cm:name']);
logger.log("Before Status:" + doc.properties['cm:customstatus']);
doc.properties['cm:customstatus'] = "Completed";
logger.log("After Status:" + doc.properties['cm:customstatus']);
logger.log("Noderef:" + doc.properties['d:noderef']); //return null
logger.log("Noderef:" + doc.noderef);//return undefined
}
04-27-2012 02:48 AM
04-27-2012 06:19 AM
for (var i = 0; i < bpm_package.children.length; i++)
{
var doc = bpm_package.children[i];
doc.properties['cm:customstatus'] = "Rejected";
doc.save();
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.