Class CdiBusinessProcessEvent
- java.lang.Object
-
- org.camunda.bpm.engine.cdi.impl.event.CdiBusinessProcessEvent
-
- All Implemented Interfaces:
BusinessProcessEvent
public class CdiBusinessProcessEvent extends java.lang.Object implements BusinessProcessEvent
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityId
protected DelegateTask
delegateTask
protected java.lang.String
executionId
protected ProcessDefinition
processDefinition
protected java.lang.String
processInstanceId
protected java.util.Date
timeStamp
protected java.lang.String
transitionName
protected BusinessProcessEventType
type
-
Constructor Summary
Constructors Constructor Description CdiBusinessProcessEvent(java.lang.String activityId, java.lang.String transitionName, ProcessDefinition processDefinition, DelegateExecution execution, BusinessProcessEventType type, java.util.Date timeStamp)
CdiBusinessProcessEvent(DelegateTask task, ProcessDefinitionEntity processDefinition, BusinessProcessEventType type, java.util.Date timeStamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getActivityId()
java.lang.String
getExecutionId()
ProcessDefinition
getProcessDefinition()
java.lang.String
getProcessInstanceId()
DelegateTask
getTask()
java.lang.String
getTaskDefinitionKey()
java.lang.String
getTaskId()
java.util.Date
getTimeStamp()
java.lang.String
getTransitionName()
BusinessProcessEventType
getType()
java.lang.String
toString()
-
-
-
Field Detail
-
activityId
protected final java.lang.String activityId
-
processDefinition
protected final ProcessDefinition processDefinition
-
transitionName
protected final java.lang.String transitionName
-
processInstanceId
protected final java.lang.String processInstanceId
-
executionId
protected final java.lang.String executionId
-
delegateTask
protected final DelegateTask delegateTask
-
type
protected final BusinessProcessEventType type
-
timeStamp
protected final java.util.Date timeStamp
-
-
Constructor Detail
-
CdiBusinessProcessEvent
public CdiBusinessProcessEvent(java.lang.String activityId, java.lang.String transitionName, ProcessDefinition processDefinition, DelegateExecution execution, BusinessProcessEventType type, java.util.Date timeStamp)
-
CdiBusinessProcessEvent
public CdiBusinessProcessEvent(DelegateTask task, ProcessDefinitionEntity processDefinition, BusinessProcessEventType type, java.util.Date timeStamp)
-
-
Method Detail
-
getProcessDefinition
public ProcessDefinition getProcessDefinition()
- Specified by:
getProcessDefinition
in interfaceBusinessProcessEvent
- Returns:
- the process definition in which the event is happening / has happened or null the event was not related to a process definition
-
getActivityId
public java.lang.String getActivityId()
- Specified by:
getActivityId
in interfaceBusinessProcessEvent
- Returns:
- the id of the activity the process is currently in / was in at the moment the event was fired.
-
getTransitionName
public java.lang.String getTransitionName()
- Specified by:
getTransitionName
in interfaceBusinessProcessEvent
- Returns:
- the name of the transition being taken / that was taken. (null, if
this event is not of type
BusinessProcessEventType.TAKE
-
getProcessInstanceId
public java.lang.String getProcessInstanceId()
- Specified by:
getProcessInstanceId
in interfaceBusinessProcessEvent
- Returns:
- the id of the
ProcessInstance
this event corresponds to
-
getExecutionId
public java.lang.String getExecutionId()
- Specified by:
getExecutionId
in interfaceBusinessProcessEvent
- Returns:
- the id of the
Execution
this event corresponds to
-
getType
public BusinessProcessEventType getType()
- Specified by:
getType
in interfaceBusinessProcessEvent
- Returns:
- the type of the event
-
getTimeStamp
public java.util.Date getTimeStamp()
- Specified by:
getTimeStamp
in interfaceBusinessProcessEvent
- Returns:
- the timestamp indicating the local time at which the event was fired.
-
getTask
public DelegateTask getTask()
- Specified by:
getTask
in interfaceBusinessProcessEvent
- Returns:
- the delegate task if this is a task event.
-
getTaskId
public java.lang.String getTaskId()
- Specified by:
getTaskId
in interfaceBusinessProcessEvent
- Returns:
- the task id of the current task or null if this is not a task event.
-
getTaskDefinitionKey
public java.lang.String getTaskDefinitionKey()
- Specified by:
getTaskDefinitionKey
in interfaceBusinessProcessEvent
- Returns:
- the id of the task in the process definition (BPMN XML) or null if this is not a task event.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-