Package de.xima.fc.workflow.validator
Class FcChangeStateValidator
- java.lang.Object
-
- de.xima.fc.workflow.validator.ACustomWorkflowLocalValidator
-
- de.xima.fc.workflow.validator.FcChangeStateValidator
-
- All Implemented Interfaces:
IWorkflowLocalValidator<FcChangeStateProps,WorkflowNode>
public class FcChangeStateValidator extends ACustomWorkflowLocalValidator implements IWorkflowLocalValidator<FcChangeStateProps,WorkflowNode>
Validator for nodes of typeEWorkflowNodeType.FC_CHANGE_STATE
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.workflow.validator.ACustomWorkflowLocalValidator
params, validationContext
-
-
Constructor Summary
Constructors Constructor Description FcChangeStateValidator(IElementLocalValidationParams<FcChangeStateProps,WorkflowNode> params)
Creates a new validator with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IWorkflowElementValidationResult
validateLocal()
Performs the local validation, seeIElementHandler.validateLocal(IElementLocalValidationParams)
for details.IWorkflowElementValidationResult
validateState(IElementLocalValidationParams<FcChangeStateProps,WorkflowNode> params)
Performs part of the local validation for the change state action by checking whether duplicate states exist.
-
-
-
Constructor Detail
-
FcChangeStateValidator
public FcChangeStateValidator(IElementLocalValidationParams<FcChangeStateProps,WorkflowNode> params)
Creates a new validator with the given parameters.- Parameters:
params
- Parameters as they were passed to the workflow validation process.
-
-
Method Detail
-
validateLocal
public IWorkflowElementValidationResult validateLocal() throws WorkflowValidationException
Description copied from interface:IWorkflowLocalValidator
Performs the local validation, seeIElementHandler.validateLocal(IElementLocalValidationParams)
for details.- Specified by:
validateLocal
in interfaceIWorkflowLocalValidator<FcChangeStateProps,WorkflowNode>
- Returns:
- The result of the validation.
- Throws:
WorkflowValidationException
- When an unexpected error occurred during validation.
-
validateState
public IWorkflowElementValidationResult validateState(IElementLocalValidationParams<FcChangeStateProps,WorkflowNode> params)
Performs part of the local validation for the change state action by checking whether duplicate states exist.- Parameters:
params
- Params that were passed to the local validation.- Returns:
- The validation result. It will be invalid when a state with the same name exist already.
-
-