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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected booleanprotected final Expressionprotected final CallableElementprotected Stringprotected final EventTypeprotected booleanprotected EventSubscriptionJobDeclaration -
Constructor Summary
ConstructorsConstructorDescriptionEventSubscriptionDeclaration(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.booleanbooleanisAsync()booleanprotected booleanbooleanResolves the event name within the given scope.voidsetActivityId(String activityId) voidsetAsync(boolean async) voidsetEventScopeActivityId(String eventScopeActivityId) voidsetJobDeclaration(EventSubscriptionJobDeclaration jobDeclaration) voidsetStartEvent(boolean isStartEvent) voidupdateSubscription(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
-