public class EventSubscriptionEntity extends Object implements EventSubscription, DbEntity, HasDbRevision, HasDbReferences, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected ActivityImpl |
activity |
protected String |
activityId |
protected String |
configuration |
protected Date |
created |
protected String |
eventName |
protected String |
eventType |
protected ExecutionEntity |
execution |
protected String |
executionId |
protected String |
id |
protected EventSubscriptionJobDeclaration |
jobDeclaration |
protected String |
processInstanceId |
protected int |
revision |
protected String |
tenantId |
| Constructor and Description |
|---|
EventSubscriptionEntity() |
EventSubscriptionEntity(EventType eventType) |
EventSubscriptionEntity(ExecutionEntity executionEntity,
EventType eventType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToExecution() |
static EventSubscriptionEntity |
createAndInsert(ExecutionEntity executionEntity,
EventType eventType,
ActivityImpl activity) |
static EventSubscriptionEntity |
createAndInsert(ExecutionEntity executionEntity,
EventType eventType,
ActivityImpl activity,
String configuration) |
void |
delete() |
boolean |
equals(Object obj) |
void |
eventReceived(Object payload,
boolean processASync) |
ActivityImpl |
getActivity() |
String |
getActivityId()
The identifier of the activity that this event subscription belongs to.
|
String |
getConfiguration() |
Date |
getCreated()
The time this event subscription was created.
|
String |
getEventName()
The name of the event this subscription belongs to as defined in the process model.
|
String |
getEventType()
The event subscriptions type.
|
ExecutionEntity |
getExecution() |
String |
getExecutionId()
The execution that is subscribed on the referenced event.
|
String |
getId()
The unique identifier of the event subscription.
|
EventSubscriptionJobDeclaration |
getJobDeclaration() |
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
ProcessDefinitionEntity |
getProcessDefinition() |
String |
getProcessInstanceId()
The process instance this subscription belongs to.
|
Map<String,Class> |
getReferencedEntitiesIdAndClass() |
Set<String> |
getReferencedEntityIds() |
int |
getRevision() |
int |
getRevisionNext() |
String |
getTenantId()
The id of the tenant this event subscription belongs to.
|
int |
hashCode() |
void |
insert() |
boolean |
isSubscriptionForEventType(EventType eventType) |
protected void |
processEventSync(Object payload) |
protected void |
removeFromExecution() |
protected void |
scheduleEventAsync(Object payload) |
void |
setActivity(ActivityImpl activity) |
void |
setActivityId(String activityId) |
void |
setConfiguration(String configuration) |
void |
setCreated(Date created) |
void |
setEventName(String eventName) |
void |
setEventType(String eventType) |
void |
setExecution(ExecutionEntity execution) |
void |
setExecutionId(String executionId) |
void |
setId(String id) |
void |
setProcessInstanceId(String processInstanceId) |
void |
setRevision(int revision) |
void |
setTenantId(String tenantId) |
String |
toString() |
protected String id
protected int revision
protected String eventType
protected String eventName
protected String executionId
protected String processInstanceId
protected String activityId
protected String configuration
protected Date created
protected String tenantId
protected ExecutionEntity execution
protected ActivityImpl activity
protected EventSubscriptionJobDeclaration jobDeclaration
public EventSubscriptionEntity()
public EventSubscriptionEntity(EventType eventType)
public EventSubscriptionEntity(ExecutionEntity executionEntity, EventType eventType)
public void eventReceived(Object payload, boolean processASync)
protected void processEventSync(Object payload)
protected void scheduleEventAsync(Object payload)
public void delete()
public void insert()
public static EventSubscriptionEntity createAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity)
public static EventSubscriptionEntity createAndInsert(ExecutionEntity executionEntity, EventType eventType, ActivityImpl activity, String configuration)
protected void addToExecution()
protected void removeFromExecution()
public Object getPersistentState()
DbEntitygetPersistentState in interface DbEntitypublic ExecutionEntity getExecution()
public void setExecution(ExecutionEntity execution)
public ActivityImpl getActivity()
public ProcessDefinitionEntity getProcessDefinition()
public void setActivity(ActivityImpl activity)
public EventSubscriptionJobDeclaration getJobDeclaration()
public String getId()
EventSubscriptiongetId in interface DbEntitygetId in interface EventSubscriptionpublic int getRevision()
getRevision in interface HasDbRevisionpublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic boolean isSubscriptionForEventType(EventType eventType)
public String getEventType()
EventSubscriptiongetEventType in interface EventSubscriptionpublic void setEventType(String eventType)
public String getEventName()
EventSubscriptiongetEventName in interface EventSubscriptionpublic void setEventName(String eventName)
public String getExecutionId()
EventSubscriptiongetExecutionId in interface EventSubscriptionpublic void setExecutionId(String executionId)
public String getProcessInstanceId()
EventSubscriptiongetProcessInstanceId in interface EventSubscriptionpublic void setProcessInstanceId(String processInstanceId)
public String getConfiguration()
public void setConfiguration(String configuration)
public String getActivityId()
EventSubscriptiongetActivityId in interface EventSubscriptionpublic void setActivityId(String activityId)
public Date getCreated()
EventSubscriptiongetCreated in interface EventSubscriptionpublic void setCreated(Date created)
public String getTenantId()
EventSubscriptionnull
if the subscription belongs to no single tenant.getTenantId in interface EventSubscriptionpublic void setTenantId(String tenantId)
public Set<String> getReferencedEntityIds()
getReferencedEntityIds in interface HasDbReferencespublic Map<String,Class> getReferencedEntitiesIdAndClass()
getReferencedEntitiesIdAndClass in interface HasDbReferencesCopyright © 2018. All rights reserved.