Class CdiBusinessProcessEvent
java.lang.Object
org.camunda.bpm.engine.cdi.impl.event.CdiBusinessProcessEvent
- All Implemented Interfaces:
BusinessProcessEvent
- Author:
- Daniel Meyer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final org.camunda.bpm.engine.delegate.DelegateTaskprotected final Stringprotected final org.camunda.bpm.engine.repository.ProcessDefinitionprotected final Stringprotected final Dateprotected final Stringprotected final BusinessProcessEventType -
Constructor Summary
ConstructorsConstructorDescriptionCdiBusinessProcessEvent(String activityId, String transitionName, org.camunda.bpm.engine.repository.ProcessDefinition processDefinition, org.camunda.bpm.engine.delegate.DelegateExecution execution, BusinessProcessEventType type, Date timeStamp) CdiBusinessProcessEvent(org.camunda.bpm.engine.delegate.DelegateTask task, org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity processDefinition, BusinessProcessEventType type, Date timeStamp) -
Method Summary
-
Field Details
-
activityId
-
processDefinition
protected final org.camunda.bpm.engine.repository.ProcessDefinition processDefinition -
transitionName
-
processInstanceId
-
executionId
-
delegateTask
protected final org.camunda.bpm.engine.delegate.DelegateTask delegateTask -
type
-
timeStamp
-
-
Constructor Details
-
CdiBusinessProcessEvent
public CdiBusinessProcessEvent(String activityId, String transitionName, org.camunda.bpm.engine.repository.ProcessDefinition processDefinition, org.camunda.bpm.engine.delegate.DelegateExecution execution, BusinessProcessEventType type, Date timeStamp) -
CdiBusinessProcessEvent
public CdiBusinessProcessEvent(org.camunda.bpm.engine.delegate.DelegateTask task, org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity processDefinition, BusinessProcessEventType type, Date timeStamp)
-
-
Method Details
-
getProcessDefinition
public org.camunda.bpm.engine.repository.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
- 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
- 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
- Specified by:
getProcessInstanceIdin interfaceBusinessProcessEvent- Returns:
- the id of the
ProcessInstancethis event corresponds to
-
getExecutionId
- Specified by:
getExecutionIdin interfaceBusinessProcessEvent- Returns:
- the id of the
Executionthis event corresponds to
-
getType
- Specified by:
getTypein interfaceBusinessProcessEvent- Returns:
- the type of the event
-
getTimeStamp
- Specified by:
getTimeStampin interfaceBusinessProcessEvent- Returns:
- the timestamp indicating the local time at which the event was fired.
-
getTask
public org.camunda.bpm.engine.delegate.DelegateTask getTask()- Specified by:
getTaskin interfaceBusinessProcessEvent- Returns:
- the delegate task if this is a task event.
-
getTaskId
- Specified by:
getTaskIdin interfaceBusinessProcessEvent- Returns:
- the task id of the current task or null if this is not a task event.
-
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.
-
toString
-