Class WorkflowValidationParams
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.WorkflowValidationParams
-
- All Implemented Interfaces:
IBaseEnvironmentData
,IWorkflowValidationEnvironmentData
,IBaseWorkflowEnvironmentData
public final class WorkflowValidationParams extends Object implements IWorkflowValidationEnvironmentData
Parameters common to both theIWorkflowLocalHandlerValidationContext
and theIWorkflowGlobalHandlerValidationContext
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WorkflowValidationParams.Builder
A builder for configuring the workflow validation context.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowBeanValidator
getBeanValidator()
Mandant
getClient()
WorkflowElementIndex
getElementIndex()
IEntityContext
getEntityContext()
WorkflowFlowAnalysis
getFlowAnalysis()
Set<EWorkflowValidationGroup>
getGroups()
Locale
getLocale()
WorkflowResourceBundleLocator.MutableWorkflowResourceBundleLocator
getLocator()
Projekt
getProject()
IWorkflowProvider
getProvider()
Benutzer
getUser()
WorkflowVersion
getWorkflowVersion()
boolean
isOwnsEntityContext()
-
-
-
Method Detail
-
getBeanValidator
public WorkflowBeanValidator getBeanValidator()
- Returns:
- Bean validator for validating POJOs.
-
getClient
public Mandant getClient()
- Specified by:
getClient
in interfaceIBaseEnvironmentData
- Returns:
- The client that owns the given
getProject()
-
getElementIndex
public WorkflowElementIndex getElementIndex()
- Returns:
- Element index with all nodes and triggers.
-
getEntityContext
public IEntityContext getEntityContext()
- Specified by:
getEntityContext
in interfaceIBaseEnvironmentData
- Returns:
- The entity context for interacting with the database. It is passed on to the individual node and trigger handlers.
-
getFlowAnalysis
public WorkflowFlowAnalysis getFlowAnalysis()
- Returns:
- Result of analyzing the control flow of the tasks.
-
getGroups
public Set<EWorkflowValidationGroup> getGroups()
- Returns:
- List of groups indicating what should be validated.
-
getLocale
public Locale getLocale()
- Specified by:
getLocale
in interfaceIBaseEnvironmentData
- Returns:
- The locale to use for generating validation error messages.
-
getLocator
public WorkflowResourceBundleLocator.MutableWorkflowResourceBundleLocator getLocator()
- Returns:
- Resource bundle locator to use for generating validation error messages.
-
getProject
public Projekt getProject()
- Specified by:
getProject
in interfaceIBaseWorkflowEnvironmentData
- Returns:
- The project that contains the workflow to be validated.
-
getProvider
public IWorkflowProvider getProvider()
- Returns:
- Workflow provider to use. Optional, when not given, create a new one.
-
getUser
public Benutzer getUser()
- Specified by:
getUser
in interfaceIBaseEnvironmentData
- Returns:
- The current user who requested the validation.
-
getWorkflowVersion
public WorkflowVersion getWorkflowVersion()
- Specified by:
getWorkflowVersion
in interfaceIBaseWorkflowEnvironmentData
- Returns:
- The current workflow version that is being validated.
-
isOwnsEntityContext
public boolean isOwnsEntityContext()
- Returns:
- Whether the validation context should assume ownership of the given entity context. If
true
, the entity context will be closed once the workflow context is closed.
-
-