Class TriggerOnTaskFinishParams<TData>
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.TriggerOnTaskFinishParams<TData>
-
- Type Parameters:
TData- Type of the trigger's properties model.
- All Implemented Interfaces:
IElementKeyProviding,IWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>,ITriggerOnTaskFinishParams<TData>
public final class TriggerOnTaskFinishParams<TData> extends Object implements ITriggerOnTaskFinishParams<TData>
Default implementation of aITriggerOnTaskFinishParams. 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 TriggerOnTaskFinishParams(IWorkflowExecutionContext workflowContext, IWorkflowEventData eventData, WorkflowTask task, WorkflowTrigger trigger, ITaskExecutionResult executionResult)Creates a new instance with the given data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TDatagetData()WorkflowTriggergetElement()IWorkflowEventDatagetEventData()ITaskExecutionResultgetExecutionResult()ElementKeygetKey()WorkflowTaskgetTask()IWorkflowExecutionContextgetWorkflowContext()-
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.params.ITriggerOnTaskFinishParams
getEventDataAs, isWasSuccessful
-
-
-
-
Constructor Detail
-
TriggerOnTaskFinishParams
public TriggerOnTaskFinishParams(IWorkflowExecutionContext workflowContext, IWorkflowEventData eventData, WorkflowTask task, WorkflowTrigger trigger, ITaskExecutionResult executionResult)
Creates a new instance with the given data. The trigger's properties model is deserialized lazily when needed.- Parameters:
workflowContext- Current workflow context of the active execution.eventData- Event data of the event that started the task, returned bygetEventData().task- Task that is about to start, returned bygetTask().trigger- Trigger that reacted to the event.executionResult- Result of the executed task, returned bygetExecutionResult()
-
-
Method Detail
-
getData
public TData 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
public WorkflowTrigger getElement()
- Specified by:
getElementin interfaceIWorkflowElementWithDeserializedModel<TData,WorkflowTrigger>- Returns:
- The workflow element, i.e. a node or trigger.
-
getEventData
public IWorkflowEventData getEventData()
- Specified by:
getEventDatain interfaceITriggerOnTaskFinishParams<TData>- Returns:
- The event data describing the event that occurred.
-
getExecutionResult
public ITaskExecutionResult getExecutionResult()
- Specified by:
getExecutionResultin interfaceITriggerOnTaskFinishParams<TData>- Returns:
- The result of the task that was executed. Use
ITaskExecutionResult.isWasSuccessful()to check whether the task was completed successfully.
-
getKey
public ElementKey getKey()
- Specified by:
getKeyin interfaceIElementKeyProviding- Returns:
- The key that identifies this instance.
-
getTask
public WorkflowTask getTask()
- Specified by:
getTaskin interfaceITriggerOnTaskFinishParams<TData>- Returns:
- The task that was executed.
-
getWorkflowContext
public IWorkflowExecutionContext getWorkflowContext()
- Specified by:
getWorkflowContextin interfaceITriggerOnTaskFinishParams<TData>- Returns:
- The workflow context of the current workflow execution. Use this context to access various system related features, such as accessing or modifying variables, replacing placeholders, retrieving / writing files, or sending HTTP responses.
-
-