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 the
IWorkflowLocalHandlerValidationContext
and the
IWorkflowGlobalHandlerValidationContext
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder for configuring the workflow validation context. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.xima.fc.interfaces.workflow.execution.IBaseEnvironmentData
getUser
-
Method Details
-
getBeanValidator
- Returns:
- Bean validator for validating POJOs.
-
getClient
- Specified by:
getClient
in interfaceIBaseEnvironmentData
- Returns:
- The client that owns the given
getProject()
-
getElementIndex
- Returns:
- Element index with all nodes and triggers.
-
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
- Returns:
- Result of analyzing the control flow of the tasks.
-
getGroups
- Returns:
- List of groups indicating what should be validated.
-
getLocale
- Specified by:
getLocale
in interfaceIBaseEnvironmentData
- Returns:
- The locale to use for generating validation error messages.
-
getLocator
- Returns:
- Resource bundle locator to use for generating validation error messages.
-
getProject
- Specified by:
getProject
in interfaceIBaseWorkflowEnvironmentData
- Returns:
- The project that contains the workflow to be validated.
-
getProvider
- Returns:
- Workflow provider to use. Optional, when not given, create a new one.
-
getUserModel
- Specified by:
getUserModel
in interfaceIBaseEnvironmentData
- Returns:
- The current user who requested the validation.
-
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.
-