Hi,
I want to update document properties in an ACCE search result list with the Batch operations.
The script to execute is :
importClass(Packages.com.filenet.api.property.Properties);
importClass(Packages.com.filenet.api.constants.RefreshMode);
function OnCustomProcess(CEObject)
{
CEObject.refresh();
CEObject.getProperties().putValue("TECHNICAL_OCRSTATUS", parseInt("0"));
CEObject.save(RefreshMode.REFRESH);
}
The property to update is an integer. But no way to obtain an integer in the JScript. The rror message is always:
"There was an error running the script. Message was: Wrapped com.filenet.api.exception.EngineRuntimeException: FNRCE0018E: E_DATATYPE_MISMATCH: The method invoked is inappropriate for the datatype of the property. The property TECHNICAL_OCRSTATUS expects the datatype to be java.lang.Integer, but the input value is java.lang.Double. failedBatchItem=0 errorStack={ at".
Did you find a way to achieve this update ? I didn't find any documentation on this subject, except eForms scripts.
Thanks
------------------------------
Yannick Martin
------------------------------