Class ConditionalEventDefinition
- java.lang.Object
-
- org.camunda.bpm.engine.impl.bpmn.parser.EventSubscriptionDeclaration
-
- org.camunda.bpm.engine.impl.bpmn.parser.ConditionalEventDefinition
-
- All Implemented Interfaces:
Serializable
public class ConditionalEventDefinition extends EventSubscriptionDeclaration implements 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 String
conditionAsString
protected boolean
interrupting
protected Set<String>
variableEvents
protected 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()
String
getConditionAsString()
Set<String>
getVariableEvents()
String
getVariableName()
boolean
isInterrupting()
void
setConditionalActivity(ActivityImpl conditionalActivity)
void
setConditionAsString(String conditionAsString)
void
setInterrupting(boolean interrupting)
void
setVariableEvents(Set<String> variableEvents)
void
setVariableName(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 String conditionAsString
-
condition
protected final Condition condition
-
interrupting
protected boolean interrupting
-
variableName
protected String variableName
-
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 String getVariableName()
-
setVariableName
public void setVariableName(String variableName)
-
getConditionAsString
public String getConditionAsString()
-
setConditionAsString
public void setConditionAsString(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)
-
-