Class EventSubscriptionDeclaration
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.parser.EventSubscriptionDeclaration
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConditionalEventDefinition
- Author:
- Daniel Meyer, Falko Menge, Danny Gräf
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected boolean
protected final Expression
protected final CallableElement
protected String
protected final EventType
protected boolean
protected EventSubscriptionJobDeclaration
-
Constructor Summary
ConstructorDescriptionEventSubscriptionDeclaration
(Expression eventExpression, EventType eventType) EventSubscriptionDeclaration
(Expression eventExpression, EventType eventType, CallableElement eventPayload) -
Method Summary
Modifier and TypeMethodDescriptioncreateSubscriptionForExecution
(ExecutionEntity execution) Creates and inserts a subscription entity depending on the message type of this declaration.createSubscriptionForStartEvent
(ProcessDefinitionEntity processDefinition) static Map<String,
EventSubscriptionDeclaration> getDeclarationsForScope
(PvmScope scope) Returns the name of the event without evaluating the possible expression that it might contain.boolean
boolean
isAsync()
boolean
protected boolean
boolean
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)
-
Field Details
-
eventType
-
eventName
-
eventPayload
-
async
protected boolean async -
activityId
-
eventScopeActivityId
-
isStartEvent
protected boolean isStartEvent -
jobDeclaration
-
-
Constructor Details
-
EventSubscriptionDeclaration
-
EventSubscriptionDeclaration
public EventSubscriptionDeclaration(Expression eventExpression, EventType eventType, CallableElement eventPayload)
-
-
Method Details
-
getDeclarationsForScope
-
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
-
setActivityId
-
getEventScopeActivityId
-
setEventScopeActivityId
-
isStartEvent
public boolean isStartEvent() -
setStartEvent
public void setStartEvent(boolean isStartEvent) -
getEventType
-
getEventPayload
-
setJobDeclaration
-
createSubscriptionForStartEvent
public EventSubscriptionEntity createSubscriptionForStartEvent(ProcessDefinitionEntity processDefinition) -
createSubscriptionForExecution
Creates and inserts a subscription entity depending on the message type of this declaration. -
resolveExpressionOfEventName
Resolves the event name within the given scope. -
isExpressionAvailable
protected boolean isExpressionAvailable() -
updateSubscription
-