org.camunda.bpm.engine.impl.bpmn.parser
Class EventSubscriptionDeclaration
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
EventSubscriptionDeclaration
public EventSubscriptionDeclaration(Expression eventExpression,
EventType eventType)
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.