Class DecisionValidator
- java.lang.Object
-
- com.hybris.backoffice.workflow.designer.validation.AbstractValidator
-
- com.hybris.backoffice.workflow.designer.validation.DecisionValidator
-
- All Implemented Interfaces:
WorkflowDesignerValidator
public class DecisionValidator extends AbstractValidator
Validates each decision node. Each decision need to have at least one connection to another node, otherwise it cannot be saved.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDECISION_NEEDS_AT_LEAST_ONE_CONNECTION
-
Constructor Summary
Constructors Constructor Description DecisionValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowDesignerValidationResultvalidate(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)Performs validation-
Methods inherited from class com.hybris.backoffice.workflow.designer.validation.AbstractValidator
getConnectionFinder, getNetworkEntityFinder, getNodeTypeService, setConnectionFinder, setNetworkEntityFinder, setNodeTypeService
-
-
-
-
Field Detail
-
DECISION_NEEDS_AT_LEAST_ONE_CONNECTION
public static final java.lang.String DECISION_NEEDS_AT_LEAST_ONE_CONNECTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public WorkflowDesignerValidationResult validate(com.hybris.backoffice.widgets.networkchart.context.NetworkChartContext context)
Description copied from interface:WorkflowDesignerValidatorPerforms validation- Parameters:
context- contains workflow template to be validated
-
-