public abstract class EventSubscriptionEntity extends Object implements EventSubscription, DbEntity, HasDbRevision, 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 String |
processInstanceId |
protected int |
revision |
Constructor and Description |
---|
EventSubscriptionEntity() |
EventSubscriptionEntity(ExecutionEntity executionEntity) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToExecution() |
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.
|
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
String |
getProcessInstanceId()
The process instance this subscription belongs to.
|
int |
getRevision() |
int |
getRevisionNext() |
int |
hashCode() |
void |
insert() |
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) |
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 ExecutionEntity execution
protected ActivityImpl activity
public EventSubscriptionEntity()
public EventSubscriptionEntity(ExecutionEntity executionEntity)
public void eventReceived(Object payload, boolean processASync)
protected void processEventSync(Object payload)
protected void scheduleEventAsync(Object payload)
public void delete()
public void insert()
protected void addToExecution()
protected void removeFromExecution()
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public ExecutionEntity getExecution()
public void setExecution(ExecutionEntity execution)
public ActivityImpl getActivity()
public void setActivity(ActivityImpl activity)
public String getId()
EventSubscription
getId
in interface DbEntity
getId
in interface EventSubscription
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getEventType()
EventSubscription
getEventType
in interface EventSubscription
public void setEventType(String eventType)
public String getEventName()
EventSubscription
getEventName
in interface EventSubscription
public void setEventName(String eventName)
public String getExecutionId()
EventSubscription
getExecutionId
in interface EventSubscription
public void setExecutionId(String executionId)
public String getProcessInstanceId()
EventSubscription
getProcessInstanceId
in interface EventSubscription
public void setProcessInstanceId(String processInstanceId)
public String getConfiguration()
public void setConfiguration(String configuration)
public String getActivityId()
EventSubscription
getActivityId
in interface EventSubscription
public void setActivityId(String activityId)
public Date getCreated()
EventSubscription
getCreated
in interface EventSubscription
public void setCreated(Date created)
Copyright © 2018. All rights reserved.