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 of
ITriggerAppliesToEventParams
. Allows for the trigger's properties model to be
retrieved lazily when needed.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionAppliesToEventParams
(IWorkflowEventData eventData, WorkflowTrigger trigger) Creates a new instance with the given data. -
Method Summary
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 Details
-
AppliesToEventParams
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 Details
-
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
- Specified by:
getElement
in interfaceIWorkflowElementWithDeserializedModel<TData,
WorkflowTrigger> - Returns:
- The workflow element, i.e. a node or trigger.
-
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
- Specified by:
getKey
in interfaceIElementKeyProviding
- Returns:
- The key that identifies this instance.
-