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.StringactivityIdprotected booleanasyncprotected ExpressioneventNameprotected CallableElementeventPayloadprotected java.lang.StringeventScopeActivityIdprotected EventTypeeventTypeprotected booleanisStartEventprotected EventSubscriptionJobDeclarationjobDeclaration
-
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 EventSubscriptionEntitycreateSubscriptionForExecution(ExecutionEntity execution)Creates and inserts a subscription entity depending on the message type of this declaration.EventSubscriptionEntitycreateSubscriptionForStartEvent(ProcessDefinitionEntity processDefinition)java.lang.StringgetActivityId()static java.util.Map<java.lang.String,EventSubscriptionDeclaration>getDeclarationsForScope(PvmScope scope)CallableElementgetEventPayload()java.lang.StringgetEventScopeActivityId()java.lang.StringgetEventType()java.lang.StringgetUnresolvedEventName()Returns the name of the event without evaluating the possible expression that it might contain.booleanhasEventName()booleanisAsync()booleanisEventNameLiteralText()protected booleanisExpressionAvailable()booleanisStartEvent()java.lang.StringresolveExpressionOfEventName(VariableScope scope)Resolves the event name within the given scope.voidsetActivityId(java.lang.String activityId)voidsetAsync(boolean async)voidsetEventScopeActivityId(java.lang.String eventScopeActivityId)voidsetJobDeclaration(EventSubscriptionJobDeclaration jobDeclaration)voidsetStartEvent(boolean isStartEvent)voidupdateSubscription(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)
-
-