sunset.js revision 962eb0542c63ff26b7c13d2058a9f53349d48d35
/*global input, objectID */
(function () {
// Create a change patch
var patch = [{ "operation" : "replace", "field" : "active", "value" : false },{ "operation" : "replace", "field" : "accountStatus", "value" : "inactive" }];
// Perform update via patch so that we can do so regardless of revision change
// NOTE: If we were to use update and the object had been modified during script execution
// update would fail due to conflicting revision numbers
// Update method:
// input['active'] = false;
// openidm.update(objectID, input['_rev'], input);
return true; // return true to indicate successful completion
}());