Class EventSubscriptionDeclaration
- java.lang.Object
-
- org.camunda.bpm.engine.impl.bpmn.parser.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 Summary
Fields Modifier and Type Field Description protected java.lang.String
activityId
protected boolean
async
protected Expression
eventName
protected CallableElement
eventPayload
protected java.lang.String
eventScopeActivityId
protected EventType
eventType
protected boolean
isStartEvent
protected EventSubscriptionJobDeclaration
jobDeclaration
-
Constructor Summary
Constructors Constructor Description EventSubscriptionDeclaration(Expression eventExpression, EventType eventType)
EventSubscriptionDeclaration(Expression eventExpression, EventType eventType, CallableElement eventPayload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EventSubscriptionEntity
createSubscriptionForExecution(ExecutionEntity execution)
Creates and inserts a subscription entity depending on the message type of this declaration.EventSubscriptionEntity
createSubscriptionForStartEvent(ProcessDefinitionEntity processDefinition)
java.lang.String
getActivityId()
static java.util.Map<java.lang.String,EventSubscriptionDeclaration>
getDeclarationsForScope(PvmScope scope)
CallableElement
getEventPayload()
java.lang.String
getEventScopeActivityId()
java.lang.String
getEventType()
java.lang.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()
java.lang.String
resolveExpressionOfEventName(VariableScope scope)
Resolves the event name within the given scope.void
setActivityId(java.lang.String activityId)
void
setAsync(boolean async)
void
setEventScopeActivityId(java.lang.String eventScopeActivityId)
void
setJobDeclaration(EventSubscriptionJobDeclaration jobDeclaration)
void
setStartEvent(boolean isStartEvent)
void
updateSubscription(EventSubscriptionEntity eventSubscription)
-
-
-
Field Detail
-
eventType
protected final EventType eventType
-
eventName
protected final Expression eventName
-
eventPayload
protected final CallableElement eventPayload
-
async
protected boolean async
-
activityId
protected java.lang.String activityId
-
eventScopeActivityId
protected java.lang.String eventScopeActivityId
-
isStartEvent
protected boolean isStartEvent
-
jobDeclaration
protected EventSubscriptionJobDeclaration jobDeclaration
-
-
Constructor Detail
-
EventSubscriptionDeclaration
public EventSubscriptionDeclaration(Expression eventExpression, EventType eventType)
-
EventSubscriptionDeclaration
public EventSubscriptionDeclaration(Expression eventExpression, EventType eventType, CallableElement eventPayload)
-
-
Method Detail
-
getDeclarationsForScope
public static java.util.Map<java.lang.String,EventSubscriptionDeclaration> getDeclarationsForScope(PvmScope scope)
-
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()
-
getEventPayload
public CallableElement getEventPayload()
-
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 java.lang.String resolveExpressionOfEventName(VariableScope scope)
Resolves the event name within the given scope.
-
isExpressionAvailable
protected boolean isExpressionAvailable()
-
updateSubscription
public void updateSubscription(EventSubscriptionEntity eventSubscription)
-
-