org.camunda.bpm.engine.impl.bpmn.parser
Class EventSubscriptionDeclaration

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.parser.EventSubscriptionDeclaration
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConditionalEventDefinition

public class EventSubscriptionDeclaration
extends Object
implements Serializable

Author:
Daniel Meyer, Falko Menge, Danny Gräf
See Also:
Serialized Form

Field Summary
protected  String activityId
           
protected  boolean async
           
protected  Expression eventName
           
protected  String eventScopeActivityId
           
protected  EventType eventType
           
protected  boolean isStartEvent
           
protected  EventSubscriptionJobDeclaration jobDeclaration
           
 
Constructor Summary
EventSubscriptionDeclaration(Expression eventExpression, EventType eventType)
           
 
Method Summary
 EventSubscriptionEntity createSubscriptionForExecution(ExecutionEntity execution)
          Creates and inserts a subscription entity depending on the message type of this declaration.
 EventSubscriptionEntity createSubscriptionForStartEvent(ProcessDefinitionEntity processDefinition)
           
 String getActivityId()
           
static Map<String,EventSubscriptionDeclaration> getDeclarationsForScope(PvmScope scope)
           
 String getEventScopeActivityId()
           
 String getEventType()
           
 String getUnresolvedEventName()
          Returns the name of the event without evaluating the possible expression that it might contain.
 boolean hasEventName()
           
 boolean isAsync()
           
 boolean isEventNameLiteralText()
           
protected  boolean isExpressionAvailable()
           
 boolean isStartEvent()
           
 String resolveExpressionOfEventName(VariableScope scope)
          Resolves the event name within the given scope.
 void setActivityId(String activityId)
           
 void setAsync(boolean async)
           
 void setEventScopeActivityId(String eventScopeActivityId)
           
 void setJobDeclaration(EventSubscriptionJobDeclaration jobDeclaration)
           
 void setStartEvent(boolean isStartEvent)
           
 void updateSubscription(EventSubscriptionEntity eventSubscription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventType

protected final EventType eventType

eventName

protected final Expression eventName

async

protected boolean async

activityId

protected String activityId

eventScopeActivityId

protected String eventScopeActivityId

isStartEvent

protected boolean isStartEvent

jobDeclaration

protected EventSubscriptionJobDeclaration jobDeclaration
Constructor Detail

EventSubscriptionDeclaration

public EventSubscriptionDeclaration(Expression eventExpression,
                                    EventType eventType)
Method Detail

getDeclarationsForScope

public static Map<String,EventSubscriptionDeclaration> getDeclarationsForScope(PvmScope scope)

getUnresolvedEventName

public 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 String getActivityId()

setActivityId

public void setActivityId(String activityId)

getEventScopeActivityId

public String getEventScopeActivityId()

setEventScopeActivityId

public void setEventScopeActivityId(String eventScopeActivityId)

isStartEvent

public boolean isStartEvent()

setStartEvent

public void setStartEvent(boolean isStartEvent)

getEventType

public String getEventType()

setJobDeclaration

public void setJobDeclaration(EventSubscriptionJobDeclaration jobDeclaration)

createSubscriptionForStartEvent

public EventSubscriptionEntity createSubscriptionForStartEvent(ProcessDefinitionEntity processDefinition)

createSubscriptionForExecution

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


resolveExpressionOfEventName

public String resolveExpressionOfEventName(VariableScope scope)
Resolves the event name within the given scope.


isExpressionAvailable

protected boolean isExpressionAvailable()

updateSubscription

public void updateSubscription(EventSubscriptionEntity eventSubscription)


Copyright © 2017 camunda services GmbH. All rights reserved.