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
-
-
Field Summary
Fields Modifier and Type Field Description protected String
activityId
protected boolean
async
protected Expression
eventName
protected CallableElement
eventPayload
protected 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
-
-
-
Field Detail
-
eventType
protected final EventType eventType
-
eventName
protected final Expression eventName
-
eventPayload
protected final CallableElement eventPayload
-
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)
-
EventSubscriptionDeclaration
public EventSubscriptionDeclaration(Expression eventExpression, EventType eventType, CallableElement eventPayload)
-
-
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()
-
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 String resolveExpressionOfEventName(VariableScope scope)
Resolves the event name within the given scope.
-
isExpressionAvailable
protected boolean isExpressionAvailable()
-
updateSubscription
public void updateSubscription(EventSubscriptionEntity eventSubscription)
-
-