Class PreconditionSatisfiedParams<TData>
java.lang.Object
de.xima.fc.workflow.processor.model.PreconditionSatisfiedParams<TData>
- Type Parameters:
TData- Type of the trigger's properties model.
- All Implemented Interfaces:
ITriggerPreconditionSatisfiedParams<TData>,IElementKeyProviding,IWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>
public final class PreconditionSatisfiedParams<TData>
extends Object
implements ITriggerPreconditionSatisfiedParams<TData>
Default implementation of a
ITriggerPreconditionSatisfiedParams. Allows for the properties model to be
retrieved lazily when needed.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionPreconditionSatisfiedParams(WorkflowTrigger trigger, IWorkflowEventData eventData, IWorkflowExecutionEnvironmentData environmentData) Creates a new params instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.workflow.event.ITriggerPreconditionSatisfiedParams
getEventDataAs
-
Constructor Details
-
PreconditionSatisfiedParams
public PreconditionSatisfiedParams(WorkflowTrigger trigger, IWorkflowEventData eventData, IWorkflowExecutionEnvironmentData environmentData) Creates a new params instance. The properties model of the trigger is deserialized lazily when needed.- Parameters:
trigger- Trigger for which to check the precondition.eventData- Event data of the event that occurred.environmentData- Current environment data with the form record, client etc.
-
-
Method Details
-
getData
- Specified by:
getDatain 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.
-
getElement
- Specified by:
getElementin interfaceIWorkflowElementWithDeserializedModel<TData,WorkflowTrigger> - Returns:
- The workflow element, i.e. a node or trigger.
-
getEnvironmentData
- Specified by:
getEnvironmentDatain interfaceITriggerPreconditionSatisfiedParams<TData>- Returns:
- Environment data with the form record, entity context etc.
-
getEventData
- Specified by:
getEventDatain interfaceITriggerPreconditionSatisfiedParams<TData>- Returns:
- The event data describing the event that occurred. The trigger should check whether the trigger still applies to this event.
-
getKey
- Specified by:
getKeyin interfaceIElementKeyProviding- Returns:
- The key that identifies this instance.
-