org.camunda.bpm.engine.impl.pvm.process
Enum ActivityStartBehavior

java.lang.Object
  extended by java.lang.Enum<ActivityStartBehavior>
      extended by org.camunda.bpm.engine.impl.pvm.process.ActivityStartBehavior
All Implemented Interfaces:
Serializable, Comparable<ActivityStartBehavior>

public enum ActivityStartBehavior
extends Enum<ActivityStartBehavior>

Defines the start behavior for activities.

Author:
Daniel Meyer

Enum Constant Summary
CANCEL_EVENT_SCOPE
          Used for activities which cancel their event scope.
CONCURRENT_IN_FLOW_SCOPE
          Used for activities which are executed concurrently to activities within the same flowScope.
DEFAULT
          Default start behavior for an activity is to "do nothing special".
INTERRUPT_EVENT_SCOPE
          Used for activities which interrupt their event scope NOTE: cannot only be used for activities contained in normal flow
INTERRUPT_FLOW_SCOPE
          Used for activities which interrupt their flow scope.
 
Method Summary
static ActivityStartBehavior valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActivityStartBehavior[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final ActivityStartBehavior DEFAULT
Default start behavior for an activity is to "do nothing special". Meaning: the activity is executed by the execution which enters it. NOTE: Only activities contained in normal flow can have DEFALUT start behavior.


INTERRUPT_FLOW_SCOPE

public static final ActivityStartBehavior INTERRUPT_FLOW_SCOPE
Used for activities which interrupt their flow scope. Examples: - Terminate end event - Cancel end event NOTE: can only be used for activities contained in normal flow


CONCURRENT_IN_FLOW_SCOPE

public static final ActivityStartBehavior CONCURRENT_IN_FLOW_SCOPE
Used for activities which are executed concurrently to activities within the same flowScope.


INTERRUPT_EVENT_SCOPE

public static final ActivityStartBehavior INTERRUPT_EVENT_SCOPE
Used for activities which interrupt their event scope NOTE: cannot only be used for activities contained in normal flow


CANCEL_EVENT_SCOPE

public static final ActivityStartBehavior CANCEL_EVENT_SCOPE
Used for activities which cancel their event scope. - Boundary events with cancelActivity=true NOTE: cannot only be used for activities contained in normal flow

Method Detail

values

public static ActivityStartBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ActivityStartBehavior c : ActivityStartBehavior.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ActivityStartBehavior valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016 camunda services GmbH. All rights reserved.