@Override
    public CmsWorkflowResponse executeAction(
        CmsObject userCms,
        CmsWorkflowAction action,
        CmsPublishOptions options,
        List<CmsResource> resources)
    throws CmsException {

        String actionKey = action.getAction();
        if (CmsWorkflowAction.ACTION_CANCEL.equals(actionKey)) {
            return new CmsWorkflowResponse(true, actionKey, null, null, null);
        } else if (ACTION_PUBLISH.equals(actionKey)) {
            return actionPublish(userCms, options, resources);
        } else if (ACTION_FORCE_PUBLISH.equals(actionKey)) {
            return actionForcePublish(userCms, options, resources);
        }
        throw new CmsInvalidActionException(actionKey);
    }
@ Override public CmsWorkflowResponse executeAction ( CmsObject userCms , CmsWorkflowAction action , CmsPublishOptions options , List < CmsResource > resources ) throws CmsException { String actionKey = action . getAction ( ) ; if ( CmsWorkflowAction . ACTION_CANCEL . equals ( actionKey ) ) { return new CmsWorkflowResponse ( true , actionKey , null , null , null ) ; } else if ( ACTION_PUBLISH . equals ( actionKey ) ) { return actionPublish ( userCms , options , resources ) ; } else if ( ACTION_FORCE_PUBLISH . equals ( actionKey ) ) { return actionForcePublish ( userCms , options , resources ) ; } throw new CmsInvalidActionException ( actionKey ) ; }
@see org.opencms.workflow.I_CmsWorkflowManager#executeAction(org.opencms.file.CmsObject, org.opencms.ade.publish.shared.CmsWorkflowAction, org.opencms.ade.publish.shared.CmsPublishOptions, java.util.List)