Class CdiBusinessProcessEvent
- java.lang.Object
-
- org.camunda.bpm.engine.cdi.impl.event.CdiBusinessProcessEvent
-
- All Implemented Interfaces:
BusinessProcessEvent
public class CdiBusinessProcessEvent extends Object implements BusinessProcessEvent
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected StringactivityIdprotected DelegateTaskdelegateTaskprotected StringexecutionIdprotected ProcessDefinitionprocessDefinitionprotected StringprocessInstanceIdprotected DatetimeStampprotected StringtransitionNameprotected BusinessProcessEventTypetype
-
Constructor Summary
Constructors Constructor Description CdiBusinessProcessEvent(String activityId, String transitionName, ProcessDefinition processDefinition, DelegateExecution execution, BusinessProcessEventType type, Date timeStamp)CdiBusinessProcessEvent(DelegateTask task, ProcessDefinitionEntity processDefinition, BusinessProcessEventType type, Date timeStamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActivityId()StringgetExecutionId()ProcessDefinitiongetProcessDefinition()StringgetProcessInstanceId()DelegateTaskgetTask()StringgetTaskDefinitionKey()StringgetTaskId()DategetTimeStamp()StringgetTransitionName()BusinessProcessEventTypegetType()StringtoString()
-
-
-
Field Detail
-
activityId
protected final String activityId
-
processDefinition
protected final ProcessDefinition processDefinition
-
transitionName
protected final String transitionName
-
processInstanceId
protected final String processInstanceId
-
executionId
protected final String executionId
-
delegateTask
protected final DelegateTask delegateTask
-
type
protected final BusinessProcessEventType type
-
timeStamp
protected final Date timeStamp
-
-
Constructor Detail
-
CdiBusinessProcessEvent
public CdiBusinessProcessEvent(String activityId, String transitionName, ProcessDefinition processDefinition, DelegateExecution execution, BusinessProcessEventType type, Date timeStamp)
-
CdiBusinessProcessEvent
public CdiBusinessProcessEvent(DelegateTask task, ProcessDefinitionEntity processDefinition, BusinessProcessEventType type, Date timeStamp)
-
-
Method Detail
-
getProcessDefinition
public ProcessDefinition getProcessDefinition()
- Specified by:
getProcessDefinitionin 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 String getActivityId()
- Specified by:
getActivityIdin interfaceBusinessProcessEvent- Returns:
- the id of the activity the process is currently in / was in at the moment the event was fired.
-
getTransitionName
public String getTransitionName()
- Specified by:
getTransitionNamein interfaceBusinessProcessEvent- Returns:
- the name of the transition being taken / that was taken. (null, if
this event is not of type
BusinessProcessEventType.TAKE
-
getProcessInstanceId
public String getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceBusinessProcessEvent- Returns:
- the id of the
ProcessInstancethis event corresponds to
-
getExecutionId
public String getExecutionId()
- Specified by:
getExecutionIdin interfaceBusinessProcessEvent- Returns:
- the id of the
Executionthis event corresponds to
-
getType
public BusinessProcessEventType getType()
- Specified by:
getTypein interfaceBusinessProcessEvent- Returns:
- the type of the event
-
getTimeStamp
public Date getTimeStamp()
- Specified by:
getTimeStampin interfaceBusinessProcessEvent- Returns:
- the timestamp indicating the local time at which the event was fired.
-
getTask
public DelegateTask getTask()
- Specified by:
getTaskin interfaceBusinessProcessEvent- Returns:
- the delegate task if this is a task event.
-
getTaskId
public String getTaskId()
- Specified by:
getTaskIdin interfaceBusinessProcessEvent- Returns:
- the task id of the current task or null if this is not a task event.
-
getTaskDefinitionKey
public String getTaskDefinitionKey()
- Specified by:
getTaskDefinitionKeyin interfaceBusinessProcessEvent- Returns:
- the id of the task in the process definition (BPMN XML) or null if this is not a task event.
-
-