Class ActivitiEventImpl

java.lang.Object
org.activiti.engine.delegate.event.impl.ActivitiEventImpl
All Implemented Interfaces:
ActivitiEvent
Direct Known Subclasses:
ActivitiActivityEventImpl, ActivitiEntityEventImpl, ActivitiEntityExceptionEventImpl, ActivitiMembershipEventImpl, ActivitiSequenceFlowTakenEventImpl, ActivitiVariableEventImpl

public class ActivitiEventImpl extends Object implements ActivitiEvent
Base class for all ActivitiEvent implementations.
  • Field Details

    • type

      protected ActivitiEventType type
    • executionId

      protected String executionId
    • processInstanceId

      protected String processInstanceId
    • processDefinitionId

      protected String processDefinitionId
  • Constructor Details

    • ActivitiEventImpl

      public ActivitiEventImpl(ActivitiEventType type)
      Creates a new event implementation, not part of an execution context.
    • ActivitiEventImpl

      public ActivitiEventImpl(ActivitiEventType type, String executionId, String processInstanceId, String processDefinitionId)
      Creates a new event implementation, part of an execution context.
  • Method Details

    • getType

      public ActivitiEventType getType()
      Specified by:
      getType in interface ActivitiEvent
      Returns:
      type of event.
    • setType

      public void setType(ActivitiEventType type)
    • getExecutionId

      public String getExecutionId()
      Specified by:
      getExecutionId in interface ActivitiEvent
      Returns:
      the id of the execution this event is associated with. Returns null, if the event was not dispatched from within an active execution.
    • setExecutionId

      public void setExecutionId(String executionId)
    • getProcessDefinitionId

      public String getProcessDefinitionId()
      Specified by:
      getProcessDefinitionId in interface ActivitiEvent
      Returns:
      the id of the process definition this event is associated with. Returns null, if the event was not dispatched from within an active execution.
    • setProcessDefinitionId

      public void setProcessDefinitionId(String processDefinitionId)
    • getProcessInstanceId

      public String getProcessInstanceId()
      Specified by:
      getProcessInstanceId in interface ActivitiEvent
      Returns:
      the id of the process instance this event is associated with. Returns null, if the event was not dispatched from within an active execution.
    • setProcessInstanceId

      public void setProcessInstanceId(String processInstanceId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getReason

      public String getReason()
    • setReason

      public void setReason(String reason)
    • getActor

      public String getActor()
    • setActor

      public void setActor(String actor)