Class WorkflowQueueItem
- java.lang.Object
-
- de.xima.fc.workflow.processor.model.WorkflowQueueItem
-
- All Implemented Interfaces:
IWorkflowQueueItem
public final class WorkflowQueueItem extends Object implements IWorkflowQueueItem
POJO implementation of aIWorkflowQueueItem
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description WorkflowQueueItem(WorkflowTask task, WorkflowTrigger trigger)
Creates an new POJO with the given task and trigger, and no custom event data.WorkflowQueueItem(WorkflowTask task, WorkflowTrigger trigger, IWorkflowEventData eventData)
Creates an new POJO with the given task, trigger, and custom event data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IWorkflowEventData
getEventData()
WorkflowTask
getTask()
WorkflowTrigger
getTrigger()
-
-
-
Constructor Detail
-
WorkflowQueueItem
public WorkflowQueueItem(WorkflowTask task, WorkflowTrigger trigger)
Creates an new POJO with the given task and trigger, and no custom event data.- Parameters:
task
- Value returned byIWorkflowQueueItem.getTask()
.trigger
- Value returned byIWorkflowQueueItem.getTrigger()
.
-
WorkflowQueueItem
public WorkflowQueueItem(WorkflowTask task, WorkflowTrigger trigger, IWorkflowEventData eventData)
Creates an new POJO with the given task, trigger, and custom event data.- Parameters:
task
- Value returned byIWorkflowQueueItem.getTask()
.trigger
- Value returned byIWorkflowQueueItem.getTrigger()
.eventData
- Value returned byIWorkflowQueueItem.getEventData()
.
-
-
Method Detail
-
getEventData
public IWorkflowEventData getEventData()
- Specified by:
getEventData
in interfaceIWorkflowQueueItem
- Returns:
- Event data to be used for this task. When
null
, uses the event data of the event that orginally triggered the workflow.
-
getTask
public WorkflowTask getTask()
- Specified by:
getTask
in interfaceIWorkflowQueueItem
- Returns:
- The task to be run.
-
getTrigger
public WorkflowTrigger getTrigger()
- Specified by:
getTrigger
in interfaceIWorkflowQueueItem
- Returns:
- A trigger of the task that was fired and resulted in the task being run.
-
-