Class AppliesToEventParams<TData>
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.AppliesToEventParams<TData>
-
- Type Parameters:
TData
- Type of the trigger's properties model.
- All Implemented Interfaces:
ITriggerAppliesToEventParams<TData>
,IElementKeyProviding
,IWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
public final class AppliesToEventParams<TData> extends Object implements ITriggerAppliesToEventParams<TData>
Default implementation ofITriggerAppliesToEventParams
. Allows for the trigger's properties model to be retrieved lazily when needed.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description AppliesToEventParams(IWorkflowEventData eventData, WorkflowTrigger trigger)
Creates a new instance with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TData
getData()
WorkflowTrigger
getElement()
IWorkflowEventData
getEventData()
ElementKey
getKey()
-
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.event.ITriggerAppliesToEventParams
getEventDataAs
-
-
-
-
Constructor Detail
-
AppliesToEventParams
public AppliesToEventParams(IWorkflowEventData eventData, WorkflowTrigger trigger)
Creates a new instance with the given data. The trigger's properties model is deserialized lazily when needed.- Parameters:
eventData
- Event data of the event that occurred.trigger
- Trigger that reacted to the event.
-
-
Method Detail
-
getEventData
public IWorkflowEventData getEventData()
- Specified by:
getEventData
in interfaceITriggerAppliesToEventParams<TData>
- Returns:
- The event data describing the event that occurred. The trigger should check whether the
IWorkflowElementWithDeserializedModel.getData()
applies to this event.
-
getElement
public WorkflowTrigger getElement()
- Specified by:
getElement
in interfaceIWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
- Returns:
- The workflow element, i.e. a node or trigger.
-
getData
public TData getData()
- Specified by:
getData
in interfaceIWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
- Returns:
- The custom data of the workflow element. This is passed for convenience, it the the same as
ICustomParametersProviding.getCustomParameters()
, but already deserialized and updated.
-
getKey
public ElementKey getKey()
- Specified by:
getKey
in interfaceIElementKeyProviding
- Returns:
- The key that identifies this instance.
-
-