public class ConditionalEventDefinition extends EventSubscriptionDeclaration implements Serializable
Modifier and Type | Field and Description |
---|---|
protected Condition |
condition |
protected ActivityImpl |
conditionalActivity |
protected String |
conditionAsString |
protected boolean |
interrupting |
protected Set<String> |
variableEvents |
protected String |
variableName |
activityId, async, eventName, eventPayload, eventScopeActivityId, eventType, isStartEvent, jobDeclaration
Constructor and Description |
---|
ConditionalEventDefinition(Condition condition,
ActivityImpl conditionalActivity) |
Modifier and Type | Method and 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) |
createSubscriptionForExecution, createSubscriptionForStartEvent, getActivityId, getDeclarationsForScope, getEventPayload, getEventScopeActivityId, getEventType, getUnresolvedEventName, hasEventName, isAsync, isEventNameLiteralText, isExpressionAvailable, isStartEvent, resolveExpressionOfEventName, setActivityId, setAsync, setEventScopeActivityId, setJobDeclaration, setStartEvent, updateSubscription
protected String conditionAsString
protected final Condition condition
protected boolean interrupting
protected String variableName
protected ActivityImpl conditionalActivity
public ConditionalEventDefinition(Condition condition, ActivityImpl conditionalActivity)
public ActivityImpl getConditionalActivity()
public void setConditionalActivity(ActivityImpl conditionalActivity)
public boolean isInterrupting()
public void setInterrupting(boolean interrupting)
public String getVariableName()
public void setVariableName(String variableName)
public String getConditionAsString()
public void setConditionAsString(String conditionAsString)
public boolean shouldEvaluateForVariableEvent(VariableEvent event)
public boolean evaluate(DelegateExecution execution)
public boolean tryEvaluate(DelegateExecution execution)
public boolean tryEvaluate(VariableEvent variableEvent, DelegateExecution execution)
Copyright © 2022. All rights reserved.