Record Class WorkflowSplitService.RegionPark

java.lang.Object
java.lang.Record
com.axelor.workflow.split.WorkflowSplitService.RegionPark
Enclosing class:
WorkflowSplitService

public static record WorkflowSplitService.RegionPark(String parkKey, LocalDateTime enteredAt, Map<String,LocalDateTime> deadlines, List<Boundaries.Subscription> subscriptions, LocalDateTime wakeAt) extends Record
The park watching a whole region, resolved as the walk entered it: enteredAt is the entry, which is what its deadlines run from. Null when the subflow has no boundary.
  • Constructor Details

    • RegionPark

      public RegionPark(String parkKey, LocalDateTime enteredAt, Map<String,LocalDateTime> deadlines, List<Boundaries.Subscription> subscriptions, LocalDateTime wakeAt)
      Creates an instance of a RegionPark record class.
      Parameters:
      parkKey - the value for the parkKey record component
      enteredAt - the value for the enteredAt record component
      deadlines - the value for the deadlines record component
      subscriptions - the value for the subscriptions record component
      wakeAt - the value for the wakeAt record component
  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • parkKey

      public String parkKey()
      Returns the value of the parkKey record component.
      Returns:
      the value of the parkKey record component
    • enteredAt

      public LocalDateTime enteredAt()
      Returns the value of the enteredAt record component.
      Returns:
      the value of the enteredAt record component
    • deadlines

      public Map<String,LocalDateTime> deadlines()
      Returns the value of the deadlines record component.
      Returns:
      the value of the deadlines record component
    • subscriptions

      public List<Boundaries.Subscription> subscriptions()
      Returns the value of the subscriptions record component.
      Returns:
      the value of the subscriptions record component
    • wakeAt

      public LocalDateTime wakeAt()
      Returns the value of the wakeAt record component.
      Returns:
      the value of the wakeAt record component