org.camunda.bpm.engine.impl.bpmn.parser
Class ConditionalEventDefinition

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.parser.EventSubscriptionDeclaration
      extended by 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
protected  Condition condition
           
protected  ActivityImpl conditionalActivity
           
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, eventScopeActivityId, eventType, isStartEvent, jobDeclaration
 
Constructor Summary
ConditionalEventDefinition(Condition condition, ActivityImpl conditionalActivity)
           
 
Method Summary
 boolean evaluate(DelegateExecution execution)
           
 ActivityImpl getConditionalActivity()
           
 Set<String> getVariableEvents()
           
 String getVariableName()
           
 boolean isInterrupting()
           
 void setConditionalActivity(ActivityImpl conditionalActivity)
           
 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, getEventScopeActivityId, getEventType, getUnresolvedEventName, hasEventName, isAsync, isEventNameLiteralText, isExpressionAvailable, isStartEvent, resolveExpressionOfEventName, setActivityId, setAsync, setEventScopeActivityId, setJobDeclaration, setStartEvent, updateSubscription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

condition

protected final Condition condition

interrupting

protected boolean interrupting

variableName

protected String variableName

variableEvents

protected Set<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 String getVariableName()

setVariableName

public void setVariableName(String variableName)

getVariableEvents

public Set<String> getVariableEvents()

setVariableEvents

public void setVariableEvents(Set<String> variableEvents)

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)


Copyright © 2017 camunda services GmbH. All rights reserved.