Class ConditionalEventDefinition
- java.lang.Object
-
- org.camunda.bpm.engine.impl.bpmn.parser.EventSubscriptionDeclaration
-
- org.camunda.bpm.engine.impl.bpmn.parser.ConditionalEventDefinition
-
- All Implemented Interfaces:
java.io.Serializable
public class ConditionalEventDefinition extends EventSubscriptionDeclaration implements java.io.Serializable
Represents the conditional event definition corresponding to the ConditionalEvent defined by the BPMN 2.0 spec.- Author:
- Christopher Zell
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Condition
condition
protected ActivityImpl
conditionalActivity
protected java.lang.String
conditionAsString
protected boolean
interrupting
protected java.util.Set<java.lang.String>
variableEvents
protected java.lang.String
variableName
-
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.parser.EventSubscriptionDeclaration
activityId, async, eventName, eventPayload, eventScopeActivityId, eventType, isStartEvent, jobDeclaration
-
-
Constructor Summary
Constructors Constructor Description ConditionalEventDefinition(Condition condition, ActivityImpl conditionalActivity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(DelegateExecution execution)
ActivityImpl
getConditionalActivity()
java.lang.String
getConditionAsString()
java.util.Set<java.lang.String>
getVariableEvents()
java.lang.String
getVariableName()
boolean
isInterrupting()
void
setConditionalActivity(ActivityImpl conditionalActivity)
void
setConditionAsString(java.lang.String conditionAsString)
void
setInterrupting(boolean interrupting)
void
setVariableEvents(java.util.Set<java.lang.String> variableEvents)
void
setVariableName(java.lang.String variableName)
boolean
shouldEvaluateForVariableEvent(VariableEvent event)
boolean
tryEvaluate(DelegateExecution execution)
boolean
tryEvaluate(VariableEvent variableEvent, DelegateExecution execution)
-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.parser.EventSubscriptionDeclaration
createSubscriptionForExecution, createSubscriptionForStartEvent, getActivityId, getDeclarationsForScope, getEventPayload, getEventScopeActivityId, getEventType, getUnresolvedEventName, hasEventName, isAsync, isEventNameLiteralText, isExpressionAvailable, isStartEvent, resolveExpressionOfEventName, setActivityId, setAsync, setEventScopeActivityId, setJobDeclaration, setStartEvent, updateSubscription
-
-
-
-
Field Detail
-
conditionAsString
protected java.lang.String conditionAsString
-
condition
protected final Condition condition
-
interrupting
protected boolean interrupting
-
variableName
protected java.lang.String variableName
-
variableEvents
protected java.util.Set<java.lang.String> variableEvents
-
conditionalActivity
protected ActivityImpl conditionalActivity
-
-
Constructor Detail
-
ConditionalEventDefinition
public ConditionalEventDefinition(Condition condition, ActivityImpl conditionalActivity)
-
-
Method Detail
-
getConditionalActivity
public ActivityImpl getConditionalActivity()
-
setConditionalActivity
public void setConditionalActivity(ActivityImpl conditionalActivity)
-
isInterrupting
public boolean isInterrupting()
-
setInterrupting
public void setInterrupting(boolean interrupting)
-
getVariableName
public java.lang.String getVariableName()
-
setVariableName
public void setVariableName(java.lang.String variableName)
-
getVariableEvents
public java.util.Set<java.lang.String> getVariableEvents()
-
setVariableEvents
public void setVariableEvents(java.util.Set<java.lang.String> variableEvents)
-
getConditionAsString
public java.lang.String getConditionAsString()
-
setConditionAsString
public void setConditionAsString(java.lang.String conditionAsString)
-
shouldEvaluateForVariableEvent
public boolean shouldEvaluateForVariableEvent(VariableEvent event)
-
evaluate
public boolean evaluate(DelegateExecution execution)
-
tryEvaluate
public boolean tryEvaluate(DelegateExecution execution)
-
tryEvaluate
public boolean tryEvaluate(VariableEvent variableEvent, DelegateExecution execution)
-
-