Interface ITriggerAppliesToEventParams<TData>
-
- Type Parameters:
TData
- Type of the trigger's properties model.
- All Superinterfaces:
IElementKeyProviding
,IWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
- All Known Implementing Classes:
AppliesToEventParams
public interface ITriggerAppliesToEventParams<TData> extends IWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
Represents the parameters forITriggerHandler.isAppliesToEvent(ITriggerAppliesToEventParams)
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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
-
getEventData
IWorkflowEventData getEventData()
- Returns:
- The event data describing the event that occurred. The trigger should check whether the
IWorkflowElementWithDeserializedModel.getData()
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.
-
-