org.camunda.bpm.engine.cdi.impl.event
Class CdiBusinessProcessEvent

java.lang.Object
  extended by org.camunda.bpm.engine.cdi.impl.event.CdiBusinessProcessEvent
All Implemented Interfaces:
BusinessProcessEvent

public class CdiBusinessProcessEvent
extends Object
implements BusinessProcessEvent

Author:
Daniel Meyer

Field Summary
protected  String activityId
           
protected  String executionId
           
protected  ProcessDefinition processDefinition
           
protected  String processInstanceId
           
protected  Date timeStamp
           
protected  String transitionName
           
protected  BusinessProcessEventType type
           
 
Constructor Summary
CdiBusinessProcessEvent(String activityId, String transitionName, ProcessDefinition processDefinition, DelegateExecution execution, BusinessProcessEventType type, Date timeStamp)
           
 
Method Summary
 String getActivityId()
           
 String getExecutionId()
           
 ProcessDefinition getProcessDefinition()
           
 String getProcessInstanceId()
           
 Date getTimeStamp()
           
 String getTransitionName()
           
 BusinessProcessEventType getType()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

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)
Method Detail

getProcessDefinition

public ProcessDefinition getProcessDefinition()
Specified by:
getProcessDefinition in interface BusinessProcessEvent
Returns:
the process definition in which the event is happening / has happened

getActivityId

public String getActivityId()
Specified by:
getActivityId in interface BusinessProcessEvent
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:
getTransitionName in interface BusinessProcessEvent
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:
getProcessInstanceId in interface BusinessProcessEvent
Returns:
the id of the ProcessInstance this event corresponds to

getExecutionId

public String getExecutionId()
Specified by:
getExecutionId in interface BusinessProcessEvent
Returns:
the id of the Execution this event corresponds to

getType

public BusinessProcessEventType getType()
Specified by:
getType in interface BusinessProcessEvent
Returns:
the type of the event

getTimeStamp

public Date getTimeStamp()
Specified by:
getTimeStamp in interface BusinessProcessEvent
Returns:
the timestamp indicating the local time at which the event was fired.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 camunda services GmbH. All Rights Reserved.