Enum Class EventDefinitionLocation

java.lang.Object
java.lang.Enum<EventDefinitionLocation>
org.flowable.bpmn.model.EventDefinitionLocation
All Implemented Interfaces:
Serializable, Comparable<EventDefinitionLocation>, Constable

public enum EventDefinitionLocation extends Enum<EventDefinitionLocation>
Where an EventDefinition is allowed to appear in a process model. Each EventDefinition subclass declares its supported locations via EventDefinition.getSupportedLocations(); the BPMN process validators consult this set instead of hard-coding the allowed types.
  • Enum Constant Details

    • START_EVENT

      public static final EventDefinitionLocation START_EVENT
      Top-level start event of a Process (i.e. not inside an EventSubProcess).
    • EVENT_SUBPROCESS_START_EVENT

      public static final EventDefinitionLocation EVENT_SUBPROCESS_START_EVENT
      Start event inside an EventSubProcess.
    • INTERMEDIATE_CATCH_EVENT

      public static final EventDefinitionLocation INTERMEDIATE_CATCH_EVENT
      IntermediateCatchEvent body.
    • BOUNDARY_EVENT

      public static final EventDefinitionLocation BOUNDARY_EVENT
      BoundaryEvent attached to an activity.
    • END_EVENT

      public static final EventDefinitionLocation END_EVENT
      EndEvent body — covers Terminate, Cancel, Error, Escalation end events.
    • INTERMEDIATE_THROW_EVENT

      public static final EventDefinitionLocation INTERMEDIATE_THROW_EVENT
      IntermediateThrowEvent body — covers Compensate, Escalation, Signal throw events.
  • Method Details

    • values

      public static EventDefinitionLocation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EventDefinitionLocation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null