Enum ActivityStartBehavior
- java.lang.Object
-
- java.lang.Enum<ActivityStartBehavior>
-
- org.camunda.bpm.engine.impl.pvm.process.ActivityStartBehavior
-
- All Implemented Interfaces:
Serializable
,Comparable<ActivityStartBehavior>
public enum ActivityStartBehavior extends Enum<ActivityStartBehavior>
Defines the start behavior foractivities
.- Author:
- Daniel Meyer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCEL_EVENT_SCOPE
Used for activities which cancel theirevent scope
.CONCURRENT_IN_FLOW_SCOPE
Used for activities which are executed concurrently to activities within the sameflowScope
.DEFAULT
Default start behavior for an activity is to "do nothing special".INTERRUPT_EVENT_SCOPE
Used for activities whichinterrupt
theirevent scope
NOTE: cannot only be used for activities contained in normal flowINTERRUPT_FLOW_SCOPE
Used for activities whichinterrupt
theirflow scope
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 whichinterrupt
theirflow 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 sameflowScope
.
-
INTERRUPT_EVENT_SCOPE
public static final ActivityStartBehavior INTERRUPT_EVENT_SCOPE
Used for activities whichinterrupt
theirevent 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 theirevent 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 nameNullPointerException
- if the argument is null
-
-