240: checkMandatoryProperties(action, getActionDefinition());
public void execute(Action action, NodeRef actionedUponNodeRef)
para que no realice la validaciónpublic ActionDefinition getActionDefinition()
para incorporarle el parámetro script-ref
@Override
public void execute(Action action, NodeRef actionedUponNodeRef) {
// Check the mandatory properties
//checkMandatoryProperties(action, getActionDefinition());
// Only execute the action if this action is read only or the actioned upon node reference doesn't
// have a lock applied for this user.
boolean nodeIsLockedForThisUser = false;
// null nodeRefs can't be locked and some actions can be run against 'null' nodes.
// non-existent nodes can't be locked.
if (!ignoreLock && actionedUponNodeRef != null && mlAwareNodeService.exists(actionedUponNodeRef)) {
nodeIsLockedForThisUser = LockUtils.isLockedAndReadOnly(actionedUponNodeRef, lockService);
}
if (!nodeIsLockedForThisUser) {
// Execute the implementation
executeImpl(action, actionedUponNodeRef);
} else {
if (logger.isWarnEnabled() == true) {
logger.warn("Action (" + action.getActionDefinitionName() +
") ignored because actioned upon node (" + actionedUponNodeRef +
") is locked.");
}
}
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
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.