Record Class ProcessManagementService.ProcessView

java.lang.Object
java.lang.Record
org.chenile.orchestrator.process.configuration.management.ProcessManagementService.ProcessView
Enclosing class:
ProcessManagementService

public static record ProcessManagementService.ProcessView(String id, String processType, String status, boolean leaf, int completedPercent, String parentId, String predecessorId, String triggerId, String description, Instant createdAt, Instant stateEnteredAt, Instant completedAt, String input, String output, int numSubProcesses, int numCompletedSubProcesses, Object errors) extends Record
  • Field Details

    • id

      private final String id
      The field for the id record component.
    • processType

      private final String processType
      The field for the processType record component.
    • status

      private final String status
      The field for the status record component.
    • leaf

      private final boolean leaf
      The field for the leaf record component.
    • completedPercent

      private final int completedPercent
      The field for the completedPercent record component.
    • parentId

      private final String parentId
      The field for the parentId record component.
    • predecessorId

      private final String predecessorId
      The field for the predecessorId record component.
    • triggerId

      private final String triggerId
      The field for the triggerId record component.
    • description

      private final String description
      The field for the description record component.
    • createdAt

      private final Instant createdAt
      The field for the createdAt record component.
    • stateEnteredAt

      private final Instant stateEnteredAt
      The field for the stateEnteredAt record component.
    • completedAt

      private final Instant completedAt
      The field for the completedAt record component.
    • input

      private final String input
      The field for the input record component.
    • output

      private final String output
      The field for the output record component.
    • numSubProcesses

      private final int numSubProcesses
      The field for the numSubProcesses record component.
    • numCompletedSubProcesses

      private final int numCompletedSubProcesses
      The field for the numCompletedSubProcesses record component.
    • errors

      private final Object errors
      The field for the errors record component.
  • Constructor Details

    • ProcessView

      public ProcessView(String id, String processType, String status, boolean leaf, int completedPercent, String parentId, String predecessorId, String triggerId, String description, Instant createdAt, Instant stateEnteredAt, Instant completedAt, String input, String output, int numSubProcesses, int numCompletedSubProcesses, Object errors)
      Creates an instance of a ProcessView record class.
      Parameters:
      id - the value for the id record component
      processType - the value for the processType record component
      status - the value for the status record component
      leaf - the value for the leaf record component
      completedPercent - the value for the completedPercent record component
      parentId - the value for the parentId record component
      predecessorId - the value for the predecessorId record component
      triggerId - the value for the triggerId record component
      description - the value for the description record component
      createdAt - the value for the createdAt record component
      stateEnteredAt - the value for the stateEnteredAt record component
      completedAt - the value for the completedAt record component
      input - the value for the input record component
      output - the value for the output record component
      numSubProcesses - the value for the numSubProcesses record component
      numCompletedSubProcesses - the value for the numCompletedSubProcesses record component
      errors - the value for the errors record component
  • Method Details

    • of

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • processType

      public String processType()
      Returns the value of the processType record component.
      Returns:
      the value of the processType record component
    • status

      public String status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • leaf

      public boolean leaf()
      Returns the value of the leaf record component.
      Returns:
      the value of the leaf record component
    • completedPercent

      public int completedPercent()
      Returns the value of the completedPercent record component.
      Returns:
      the value of the completedPercent record component
    • parentId

      public String parentId()
      Returns the value of the parentId record component.
      Returns:
      the value of the parentId record component
    • predecessorId

      public String predecessorId()
      Returns the value of the predecessorId record component.
      Returns:
      the value of the predecessorId record component
    • triggerId

      public String triggerId()
      Returns the value of the triggerId record component.
      Returns:
      the value of the triggerId record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • stateEnteredAt

      public Instant stateEnteredAt()
      Returns the value of the stateEnteredAt record component.
      Returns:
      the value of the stateEnteredAt record component
    • completedAt

      public Instant completedAt()
      Returns the value of the completedAt record component.
      Returns:
      the value of the completedAt record component
    • input

      public String input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component
    • output

      public String output()
      Returns the value of the output record component.
      Returns:
      the value of the output record component
    • numSubProcesses

      public int numSubProcesses()
      Returns the value of the numSubProcesses record component.
      Returns:
      the value of the numSubProcesses record component
    • numCompletedSubProcesses

      public int numCompletedSubProcesses()
      Returns the value of the numCompletedSubProcesses record component.
      Returns:
      the value of the numCompletedSubProcesses record component
    • errors

      public Object errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component