Class EventSubscriptionEntity

    • Field Detail

      • id

        protected java.lang.String id
      • revision

        protected int revision
      • eventType

        protected java.lang.String eventType
      • eventName

        protected java.lang.String eventName
      • executionId

        protected java.lang.String executionId
      • processInstanceId

        protected java.lang.String processInstanceId
      • activityId

        protected java.lang.String activityId
      • configuration

        protected java.lang.String configuration
      • created

        protected java.util.Date created
      • tenantId

        protected java.lang.String tenantId
    • Constructor Detail

      • EventSubscriptionEntity

        public EventSubscriptionEntity()
      • EventSubscriptionEntity

        public EventSubscriptionEntity​(EventType eventType)
    • Method Detail

      • eventReceived

        public void eventReceived​(java.lang.Object payload,
                                  boolean processASync)
      • eventReceived

        public void eventReceived​(java.lang.Object payload,
                                  java.lang.Object payloadLocal,
                                  java.lang.String businessKey,
                                  boolean processASync)
      • processEventSync

        protected void processEventSync​(java.lang.Object payload)
      • processEventSync

        protected void processEventSync​(java.lang.Object payload,
                                        java.lang.Object payloadLocal,
                                        java.lang.String businessKey)
      • scheduleEventAsync

        protected void scheduleEventAsync​(java.lang.Object payload,
                                          java.lang.Object payloadLocal,
                                          java.lang.String businessKey)
      • delete

        public void delete()
      • insert

        public void insert()
      • addToExecution

        protected void addToExecution()
      • removeFromExecution

        protected void removeFromExecution()
      • getPersistentState

        public java.lang.Object getPersistentState()
        Description copied from interface: DbEntity
        Returns 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:
        getPersistentState in interface DbEntity
      • setActivity

        public void setActivity​(ActivityImpl activity)
      • setId

        public void setId​(java.lang.String id)
        Specified by:
        setId in interface DbEntity
      • isSubscriptionForEventType

        public boolean isSubscriptionForEventType​(EventType eventType)
      • getEventType

        public java.lang.String getEventType()
        Description copied from interface: EventSubscription
        The event subscriptions type. "message" identifies message event subscriptions, "signal" identifies signal event subscription, "compensation" identifies event subscriptions used for compensation events.
        Specified by:
        getEventType in interface EventSubscription
      • setEventType

        public void setEventType​(java.lang.String eventType)
      • getEventName

        public java.lang.String getEventName()
        Description copied from interface: EventSubscription
        The name of the event this subscription belongs to as defined in the process model.
        Specified by:
        getEventName in interface EventSubscription
      • setEventName

        public void setEventName​(java.lang.String eventName)
      • setExecutionId

        public void setExecutionId​(java.lang.String executionId)
      • setProcessInstanceId

        public void setProcessInstanceId​(java.lang.String processInstanceId)
      • getConfiguration

        public java.lang.String getConfiguration()
      • setConfiguration

        public void setConfiguration​(java.lang.String configuration)
      • getActivityId

        public java.lang.String getActivityId()
        Description copied from interface: EventSubscription
        The identifier of the activity that this event subscription belongs to. This could for example be the id of a receive task.
        Specified by:
        getActivityId in interface EventSubscription
      • setActivityId

        public void setActivityId​(java.lang.String activityId)
      • setCreated

        public void setCreated​(java.util.Date created)
      • getTenantId

        public java.lang.String getTenantId()
        Description copied from interface: EventSubscription
        The id of the tenant this event subscription belongs to. Can be null if the subscription belongs to no single tenant.
        Specified by:
        getTenantId in interface EventSubscription
      • setTenantId

        public void setTenantId​(java.lang.String tenantId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getReferencedEntityIds

        public java.util.Set<java.lang.String> getReferencedEntityIds()
        Description copied from interface: HasDbReferences

        Scope: IN-MEMORY references

        Specified by:
        getReferencedEntityIds in interface HasDbReferences
        Returns:
        the ids of the entities that this entity references. Should only return ids for entities of the same type
      • getReferencedEntitiesIdAndClass

        public java.util.Map<java.lang.String,​java.lang.Class> getReferencedEntitiesIdAndClass()
        Description copied from interface: HasDbReferences

        Scope: IN-MEMORY references

        Specified by:
        getReferencedEntitiesIdAndClass in interface HasDbReferences
        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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object