org.camunda.bpm.data
Class Guards

java.lang.Object
  extended by org.camunda.bpm.data.Guards

public final class Guards
extends Object

Utility class for checks in guards.

Author:
Simon Zambrovski, holisticon AG

Field Summary
static Map<String,Object> MAP_SKIP_GUARDS
           
static String VARIABLE_SKIP_GUARDS
           
 
Constructor Summary
Guards()
           
 
Method Summary
static void checkIsSet(org.camunda.bpm.engine.delegate.DelegateExecution execution, String variableName)
          Checks, if a variable with specified name is set (global and local).
static void checkIsSetGlobal(org.camunda.bpm.engine.delegate.DelegateExecution execution, String variableName)
          Checks, if a global variable with specified name is set.
static void checkIsSetLocal(org.camunda.bpm.engine.delegate.DelegateExecution execution, String variableName)
          Checks, if a local variable with specified name is set.
static void dispatch(Guard guard, String eventName, org.camunda.bpm.engine.delegate.DelegateExecution execution)
          Helper method for event dispatch.
static boolean skipGuards(org.camunda.bpm.engine.delegate.DelegateExecution execution)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VARIABLE_SKIP_GUARDS

public static final String VARIABLE_SKIP_GUARDS
See Also:
Constant Field Values

MAP_SKIP_GUARDS

public static final Map<String,Object> MAP_SKIP_GUARDS
Constructor Detail

Guards

public Guards()
Method Detail

dispatch

public static void dispatch(Guard guard,
                            String eventName,
                            org.camunda.bpm.engine.delegate.DelegateExecution execution)
Helper method for event dispatch.
This method is used in abstract implementations TaskGuard and ActivityGuard

Parameters:
guard - guard to be used for checks.
eventName - event from camunda listener.
execution - process execution.

skipGuards

public static boolean skipGuards(org.camunda.bpm.engine.delegate.DelegateExecution execution)

checkIsSetLocal

public static void checkIsSetLocal(org.camunda.bpm.engine.delegate.DelegateExecution execution,
                                   String variableName)
Checks, if a local variable with specified name is set.

Parameters:
execution - process execution.
variableName - name of the variable to check.

checkIsSet

public static void checkIsSet(org.camunda.bpm.engine.delegate.DelegateExecution execution,
                              String variableName)
Checks, if a variable with specified name is set (global and local).

Parameters:
execution - process execution.
variableName - name of the variable to check.

checkIsSetGlobal

public static void checkIsSetGlobal(org.camunda.bpm.engine.delegate.DelegateExecution execution,
                                    String variableName)
Checks, if a global variable with specified name is set.

Parameters:
execution - process execution.
variableName - name of the variable to check.


Copyright © 2014 camunda services GmbH. All rights reserved.