org.camunda.bpm.engine.impl.runtime
Class DefaultConditionHandler

java.lang.Object
  extended by org.camunda.bpm.engine.impl.runtime.DefaultConditionHandler
All Implemented Interfaces:
ConditionHandler

public class DefaultConditionHandler
extends Object
implements ConditionHandler

Author:
Yana Vasileva

Constructor Summary
DefaultConditionHandler()
           
 
Method Summary
protected  boolean evaluateCondition(ConditionSet conditionSet, ActivityImpl activity)
           
protected  List<ConditionHandlerResult> evaluateConditionStartByEventSubscription(CommandContext commandContext, ConditionSet conditionSet)
           
protected  List<ConditionHandlerResult> evaluateConditionStartByProcessDefinitionId(CommandContext commandContext, ConditionSet conditionSet, String processDefinitionId)
           
 List<ConditionHandlerResult> evaluateStartCondition(CommandContext commandContext, ConditionSet conditionSet)
          Evaluates conditions of process definition with a conditional start event
protected  List<ActivityImpl> findConditionalStartEventActivities(ProcessDefinitionEntity processDefinition)
           
protected  List<EventSubscriptionEntity> findConditionalStartEventSubscriptions(CommandContext commandContext, ConditionSet conditionSet)
           
protected  boolean isConditionStartEvent(EventSubscriptionDeclaration declaration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConditionHandler

public DefaultConditionHandler()
Method Detail

evaluateStartCondition

public List<ConditionHandlerResult> evaluateStartCondition(CommandContext commandContext,
                                                           ConditionSet conditionSet)
Description copied from interface: ConditionHandler
Evaluates conditions of process definition with a conditional start event

Specified by:
evaluateStartCondition in interface ConditionHandler
Returns:
all matched process definitions and respective activities containing evaluated to true conditions

evaluateConditionStartByEventSubscription

protected List<ConditionHandlerResult> evaluateConditionStartByEventSubscription(CommandContext commandContext,
                                                                                 ConditionSet conditionSet)

findConditionalStartEventSubscriptions

protected List<EventSubscriptionEntity> findConditionalStartEventSubscriptions(CommandContext commandContext,
                                                                               ConditionSet conditionSet)

evaluateConditionStartByProcessDefinitionId

protected List<ConditionHandlerResult> evaluateConditionStartByProcessDefinitionId(CommandContext commandContext,
                                                                                   ConditionSet conditionSet,
                                                                                   String processDefinitionId)

findConditionalStartEventActivities

protected List<ActivityImpl> findConditionalStartEventActivities(ProcessDefinitionEntity processDefinition)

isConditionStartEvent

protected boolean isConditionStartEvent(EventSubscriptionDeclaration declaration)

evaluateCondition

protected boolean evaluateCondition(ConditionSet conditionSet,
                                    ActivityImpl activity)


Copyright © 2018 camunda services GmbH. All rights reserved.