Class EventSubscriptionDeclaration

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    ConditionalEventDefinition

    public class EventSubscriptionDeclaration
    extends java.lang.Object
    implements java.io.Serializable
    Author:
    Daniel Meyer, Falko Menge, Danny Gräf
    See Also:
    Serialized Form
    • Field Detail

      • eventType

        protected final EventType eventType
      • async

        protected boolean async
      • activityId

        protected java.lang.String activityId
      • eventScopeActivityId

        protected java.lang.String eventScopeActivityId
      • isStartEvent

        protected boolean isStartEvent
    • Constructor Detail

      • EventSubscriptionDeclaration

        public EventSubscriptionDeclaration​(Expression eventExpression,
                                            EventType eventType)
    • Method Detail

      • getUnresolvedEventName

        public java.lang.String getUnresolvedEventName()
        Returns the name of the event without evaluating the possible expression that it might contain.
      • hasEventName

        public boolean hasEventName()
      • isEventNameLiteralText

        public boolean isEventNameLiteralText()
      • isAsync

        public boolean isAsync()
      • setAsync

        public void setAsync​(boolean async)
      • getActivityId

        public java.lang.String getActivityId()
      • setActivityId

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

        public java.lang.String getEventScopeActivityId()
      • setEventScopeActivityId

        public void setEventScopeActivityId​(java.lang.String eventScopeActivityId)
      • isStartEvent

        public boolean isStartEvent()
      • setStartEvent

        public void setStartEvent​(boolean isStartEvent)
      • getEventType

        public java.lang.String getEventType()
      • createSubscriptionForExecution

        public EventSubscriptionEntity createSubscriptionForExecution​(ExecutionEntity execution)
        Creates and inserts a subscription entity depending on the message type of this declaration.
      • resolveExpressionOfEventName

        public java.lang.String resolveExpressionOfEventName​(VariableScope scope)
        Resolves the event name within the given scope.
      • isExpressionAvailable

        protected boolean isExpressionAvailable()