Enum Class PassWay

java.lang.Object
java.lang.Enum<PassWay>
cn.vertxup.workflow.cv.em.PassWay
All Implemented Interfaces:
Serializable, Comparable<PassWay>, Constable

public enum PassWay extends Enum<PassWay>
The way of current request here. in current version the workflow aisle way means four modes.
Author:
Lang
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Fork/Join Mode, ( n: 1 ) - 1) n means the next node will be `n` types.
    Grid Mode, ( n: n ) - 1) n means the next node will be `n` types.
    Multi Mode, ( 1: n ) - 1) 1 means the next node is unique ( only one ), should be `1` type.
    Standard Mode, ( 1: 1 ) - 1) 1 means the next node is unique ( only one ), should be `1` type.
  • Method Summary

    Modifier and Type
    Method
    Description
    static PassWay
    Returns the enum constant of this class with the specified name.
    static PassWay[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Fork

      public static final PassWay Fork
      Fork/Join Mode, ( n: 1 ) - 1) n means the next node will be `n` types. - 2) 1 means each type contains `1` task. The request data: ```json
      
       {
           "toUser": {
               "type1": "user1",
               "type2": "user2",
               "type3": "user3",
               "...":   "...",
               "typeN": "userN"
           }
       }
       
      ```
    • Multi

      public static final PassWay Multi
      Multi Mode, ( 1: n ) - 1) 1 means the next node is unique ( only one ), should be `1` type. - 2) n means each type contains `n` tasks. The request data: ```json
      
       {
           "toUser": [
               "user1",
               "user2",
               "user3",
               "...",
               "userN"
           ]
       }
       
      ```
    • Standard

      public static final PassWay Standard
      Standard Mode, ( 1: 1 ) - 1) 1 means the next node is unique ( only one ), should be `1` type. - 2) 1 means each type contains `1` task. The request data: ```json
      
       {
           "toUser": "user1"
       }
       
      ```
    • Grid

      public static final PassWay Grid
      Grid Mode, ( n: n ) - 1) n means the next node will be `n` types. - 2) n means each type contains `n` tasks. The request data: ```json
      
       {
           "toUser": {
               "type1": [
                    "user1",
                    "user2",
                    "..."
               ],
               "type2": [
                    "user3",
                    "user4",
                    "...",
                    "userY"
               ],
               "...": [
                    "...",
                    "userN"
               ],
               "typeN": [
                    "user2",
                    "user3",
                    "...",
                    "userX"
               ],
           }
       }
       
      ```
  • Method Details

    • values

      public static PassWay[] 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 PassWay 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