Package de.xima.fc.workflow.validator
Class FcChangeStateValidator
java.lang.Object
de.xima.fc.workflow.validator.FcChangeStateValidator
- All Implemented Interfaces:
IWorkflowLocalValidator<FcChangeStateProps,
WorkflowNode>
public final class FcChangeStateValidator
extends Object
implements IWorkflowLocalValidator<FcChangeStateProps,WorkflowNode>
Validator for nodes of type
EWorkflowNodeType.FC_CHANGE_STATE
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IElementLocalValidationParams<FcChangeStateProps,
WorkflowNode> protected final IWorkflowLocalHandlerValidationContext
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new validator with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionPerforms the local validation, seeIElementHandler.validateLocal(IElementLocalValidationParams)
for details.Performs part of the local validation for the change state action by checking whether duplicate states exist.
-
Field Details
-
params
-
validationContext
-
-
Constructor Details
-
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 Details
-
validateLocal
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) throws WorkflowValidationExceptionPerforms 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.
- Throws:
WorkflowValidationException
- When an error occurred during validation.
-