Class EventSubscriptionEntity
java.lang.Object
org.camunda.bpm.engine.impl.persistence.entity.EventSubscriptionEntity
- All Implemented Interfaces:
Serializable,DbEntity,HasDbReferences,HasDbRevision,EventSubscription
public class EventSubscriptionEntity
extends Object
implements EventSubscription, DbEntity, HasDbRevision, HasDbReferences, Serializable
- Author:
- Daniel Meyer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivityImplprotected Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected ExecutionEntityprotected Stringprotected Stringprotected EventSubscriptionJobDeclarationprotected Stringprotected intprotected String -
Constructor Summary
ConstructorsConstructorDescriptionEventSubscriptionEntity(EventType eventType) EventSubscriptionEntity(ExecutionEntity executionEntity, EventType eventType) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic EventSubscriptionEntitycreateAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity) static EventSubscriptionEntitycreateAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity, String configuration) voiddelete()booleanvoideventReceived(Object payload, boolean processASync) voideventReceived(Object payload, Object payloadLocal, Object payloadToTriggeredScope, String businessKey, boolean processASync) The identifier of the activity that this event subscription belongs to.The time this event subscription was created.The name of the event this subscription belongs to as defined in the process model.The event subscriptions type.The execution that is subscribed on the referenced event.getId()The unique identifier of the event subscription.Returns a representation of the object, as would be stored in the database.The process instance this subscription belongs to.Scope: IN-MEMORY referencesScope: IN-MEMORY referencesintintThe id of the tenant this event subscription belongs to.inthashCode()voidinsert()booleanisSubscriptionForEventType(EventType eventType) protected voidprocessEventSync(Object payload) protected voidprocessEventSync(Object payload, Object payloadLocal, Object payloadToTriggeredScope, String businessKey) protected voidprotected voidscheduleEventAsync(Object payload, Object payloadLocal, Object payloadToTriggeredScope, String businessKey) voidsetActivity(ActivityImpl activity) voidsetActivityId(String activityId) voidsetConfiguration(String configuration) voidsetCreated(Date created) voidsetEventName(String eventName) voidsetEventType(String eventType) voidsetExecution(ExecutionEntity execution) voidsetExecutionId(String executionId) voidvoidsetProcessInstanceId(String processInstanceId) voidsetRevision(int revision) voidsetTenantId(String tenantId) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
Field Details
-
id
-
revision
protected int revision -
eventType
-
eventName
-
executionId
-
processInstanceId
-
activityId
-
configuration
-
created
-
tenantId
-
execution
-
activity
-
jobDeclaration
-
-
Constructor Details
-
EventSubscriptionEntity
public EventSubscriptionEntity() -
EventSubscriptionEntity
-
EventSubscriptionEntity
-
-
Method Details
-
eventReceived
-
eventReceived
-
processEventSync
-
processEventSync
-
scheduleEventAsync
-
delete
public void delete() -
insert
public void insert() -
createAndInsert
public static EventSubscriptionEntity createAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity) -
createAndInsert
public static EventSubscriptionEntity createAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity, String configuration) -
addToExecution
protected void addToExecution() -
removeFromExecution
protected void removeFromExecution() -
getPersistentState
Description copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceDbEntity
-
getExecution
-
setExecution
-
getActivity
-
getProcessDefinition
-
setActivity
-
getJobDeclaration
-
getId
Description copied from interface:EventSubscriptionThe unique identifier of the event subscription.- Specified by:
getIdin interfaceDbEntity- Specified by:
getIdin interfaceEventSubscription
-
setId
-
getRevision
public int getRevision()- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision) - Specified by:
setRevisionin interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()- Specified by:
getRevisionNextin interfaceHasDbRevision
-
isSubscriptionForEventType
-
getEventType
Description copied from interface:EventSubscriptionThe event subscriptions type. "message" identifies message event subscriptions, "signal" identifies signal event subscription, "compensation" identifies event subscriptions used for compensation events.- Specified by:
getEventTypein interfaceEventSubscription
-
setEventType
-
getEventName
Description copied from interface:EventSubscriptionThe name of the event this subscription belongs to as defined in the process model.- Specified by:
getEventNamein interfaceEventSubscription
-
setEventName
-
getExecutionId
Description copied from interface:EventSubscriptionThe execution that is subscribed on the referenced event.- Specified by:
getExecutionIdin interfaceEventSubscription
-
setExecutionId
-
getProcessInstanceId
Description copied from interface:EventSubscriptionThe process instance this subscription belongs to.- Specified by:
getProcessInstanceIdin interfaceEventSubscription
-
setProcessInstanceId
-
getConfiguration
-
setConfiguration
-
getActivityId
Description copied from interface:EventSubscriptionThe identifier of the activity that this event subscription belongs to. This could for example be the id of a receive task.- Specified by:
getActivityIdin interfaceEventSubscription
-
setActivityId
-
getCreated
Description copied from interface:EventSubscriptionThe time this event subscription was created.- Specified by:
getCreatedin interfaceEventSubscription
-
setCreated
-
getTenantId
Description copied from interface:EventSubscriptionThe id of the tenant this event subscription belongs to. Can benullif the subscription belongs to no single tenant.- Specified by:
getTenantIdin interfaceEventSubscription
-
setTenantId
-
hashCode
public int hashCode() -
equals
-
getReferencedEntityIds
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntityIdsin interfaceHasDbReferences- Returns:
- the ids of the entities that this entity references. Should only return ids for entities of the same type
-
getReferencedEntitiesIdAndClass
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClassin interfaceHasDbReferences- Returns:
- a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
-
toString
-