Enum Class ProcessConstants.TemplateUsage

java.lang.Object
java.lang.Enum<ProcessConstants.TemplateUsage>
de.aristaflow.adept2.model.globals.ProcessConstants.TemplateUsage
All Implemented Interfaces:
Serializable, Comparable<ProcessConstants.TemplateUsage>, java.lang.constant.Constable
Enclosing class:
ProcessConstants

public static enum ProcessConstants.TemplateUsage extends Enum<ProcessConstants.TemplateUsage>
The usage of a template distinguishes whether it may be used only as a subprocess and if so whether it is copied and therefore physically integrated in the surrounding template or it is referenced. The latter recognises modifications/derivations of the template and allows a migration of the corresponding subprocess-instances.
Author:
Ulrich Kreher
  • Enum Constant Details

    • NO_SUBPROCESS

      public static final ProcessConstants.TemplateUsage NO_SUBPROCESS
      The process template may not be used as a subprocess. States valid for subprocess usage are ignored.
    • AS_COPY

      public static final ProcessConstants.TemplateUsage AS_COPY
      The process template may only be used as a subprocess by incorporating the graph structure in the surrounding process template.
    • AS_REFERENCE

      public static final ProcessConstants.TemplateUsage AS_REFERENCE
      The process template may be referenced by a node in another template. Referencing a process template resembles referencing an activity template.
    • COPY_OR_REFERENCE

      public static final ProcessConstants.TemplateUsage COPY_OR_REFERENCE
      The process template can be used either as copied subprocess or as referenced subprocess. The process modeller has to specify whether the semantics of copy or that of a reference is desired.
  • Method Details

    • values

      public static ProcessConstants.TemplateUsage[] 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 ProcessConstants.TemplateUsage 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
    • getCode

      public int getCode()
    • valueOf

      public static ProcessConstants.TemplateUsage valueOf(int code)
      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:
      code - 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