Interface ITriggerPreconditionSatisfiedParams<TData>
-
- Type Parameters:
TData
- Type of the trigger's properties model.
- All Superinterfaces:
IElementKeyProviding
,IWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
- All Known Implementing Classes:
PreconditionSatisfiedParams
public interface ITriggerPreconditionSatisfiedParams<TData> extends IWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
Represents the parameters forITriggerHandler.isPreconditionSatisfied(ITriggerPreconditionSatisfiedParams)
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IWorkflowExecutionEnvironmentData
getEnvironmentData()
IWorkflowEventData
getEventData()
default <T extends IWorkflowEventData>
TgetEventDataAs(Class<T> type)
-
Methods inherited from interface de.xima.fc.interfaces.workflow.IElementKeyProviding
getKey
-
Methods inherited from interface de.xima.fc.interfaces.workflow.IWorkflowElementWithDeserializedModel
getData, getElement
-
-
-
-
Method Detail
-
getEnvironmentData
IWorkflowExecutionEnvironmentData getEnvironmentData()
- Returns:
- Environment data with the form record, entity context etc.
-
getEventData
IWorkflowEventData getEventData()
- Returns:
- The event data describing the event that occurred. The trigger should check whether the trigger still applies to this event.
-
getEventDataAs
default <T extends IWorkflowEventData> T getEventDataAs(Class<T> type)
- Type Parameters:
T
- Desired type of the event data.- Parameters:
type
- Desired type of the event data.- Returns:
- The event data, cast to the given type, or
null
when the event data is not of the given type.
-
-