Class ValidateSynchronizedContentFunction

All Implemented Interfaces:
com.opensymphony.workflow.FunctionProvider, EnhancedFunction, Initializable, LogEnabled, Serviceable

OSWorkflow function for validating a synchronizable content.
  • Constructor Details

  • Method Details

    • execute

      public void execute(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
      Specified by:
      execute in interface com.opensymphony.workflow.FunctionProvider
      Overrides:
      execute in class ValidateContentFunction
      Throws:
      com.opensymphony.workflow.WorkflowException
    • _setCurrentStepIdAndNotify

      protected void _setCurrentStepIdAndNotify(WorkflowAwareContent content, Map transientVars) throws com.opensymphony.workflow.WorkflowException
      Description copied from class: AbstractContentFunction
      Set the content's current step ID and notify the observers that the content's workflow has changed.
      Overrides:
      _setCurrentStepIdAndNotify in class AbstractContentFunction
      Parameters:
      content - the content.
      transientVars - The workflow transient vars.
      Throws:
      com.opensymphony.workflow.WorkflowException - if an error occurs.
    • _isMajorValidation

      protected boolean _isMajorValidation(Map<String,Object> contextParameters, Map args)
      Description copied from class: ValidateContentFunction
      Search into context parameters and arguments if major information is filled, if not default value is true.
      Overrides:
      _isMajorValidation in class ValidateContentFunction
      Parameters:
      contextParameters - the context parameters
      args - the arguments
      Returns:
      true if the current validation is a major validation.