Class ElementGlobalValidationParams<TData,TElement extends IWorkflowElementEntity>
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.ElementGlobalValidationParams<TData,TElement>
-
- Type Parameters:
TData
- Type of the properties model used by the workflow element, seeIElementHandler
.TElement
- Type of the workflow element, i.e. a node or trigger.
- All Implemented Interfaces:
IElementGlobalValidationParams<TData,TElement>
public final class ElementGlobalValidationParams<TData,TElement extends IWorkflowElementEntity> extends Object implements IElementGlobalValidationParams<TData,TElement>
Default POJO implementation ofIElementGlobalValidationParams
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description ElementGlobalValidationParams(IWorkflowGlobalHandlerValidationContext validationContext, Map<UUID,List<IWorkflowElementWithDeserializedModel<TData,WorkflowNode>>> nodes)
Creates a new POJO implementation with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<UUID,List<IWorkflowElementWithDeserializedModel<TData,WorkflowNode>>>
getElementsByTask()
IWorkflowGlobalHandlerValidationContext
getValidationContext()
-
-
-
Constructor Detail
-
ElementGlobalValidationParams
public ElementGlobalValidationParams(IWorkflowGlobalHandlerValidationContext validationContext, Map<UUID,List<IWorkflowElementWithDeserializedModel<TData,WorkflowNode>>> nodes)
Creates a new POJO implementation with the given values.- Parameters:
validationContext
- The value that will be returned byIElementGlobalValidationParams.getValidationContext()
.nodes
- The value that will be returned byIElementGlobalValidationParams.getElementsByTask()
.
-
-
Method Detail
-
getElementsByTask
public Map<UUID,List<IWorkflowElementWithDeserializedModel<TData,WorkflowNode>>> getElementsByTask()
- Specified by:
getElementsByTask
in interfaceIElementGlobalValidationParams<TData,TElement extends IWorkflowElementEntity>
- Returns:
- A list of all nodes of the same
type
to which theIElementHandler
applies. These are the workflow elements that for which a global validation is to be performed. Use theIElementGlobalValidationParams.getValidationContext()
to add validation errors. The map key is the UUID of theWorkflowTask
to which the elements belong.
-
getValidationContext
public IWorkflowGlobalHandlerValidationContext getValidationContext()
- Specified by:
getValidationContext
in interfaceIElementGlobalValidationParams<TData,TElement extends IWorkflowElementEntity>
- Returns:
- The validation context of the current workflow validation process.
-
-