Class EventSubscriptionEntity

    • Constructor Detail

      • EventSubscriptionEntity

        public EventSubscriptionEntity()
      • EventSubscriptionEntity

        public EventSubscriptionEntity​(EventType eventType)
    • Method Detail

      • eventReceived

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

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

        protected void processEventSync​(Object payload)
      • processEventSync

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

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

        public void delete()
      • insert

        public void insert()
      • addToExecution

        protected void addToExecution()
      • removeFromExecution

        protected void removeFromExecution()
      • getPersistentState

        public 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)
      • isSubscriptionForEventType

        public boolean isSubscriptionForEventType​(EventType eventType)
      • getEventType

        public 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​(String eventType)
      • setEventName

        public void setEventName​(String eventName)
      • setExecutionId

        public void setExecutionId​(String executionId)
      • setProcessInstanceId

        public void setProcessInstanceId​(String processInstanceId)
      • getConfiguration

        public String getConfiguration()
      • setConfiguration

        public void setConfiguration​(String configuration)
      • getActivityId

        public 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​(String activityId)
      • setCreated

        public void setCreated​(Date created)
      • getTenantId

        public 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​(String tenantId)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getReferencedEntityIds

        public Set<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 Map<String,​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.