Record Class ProcessTriggeringStrategy

java.lang.Object
java.lang.Record
io.vertigo.orchestra.definitions.ProcessTriggeringStrategy
Record Components:
initialParams - initialsParams added to the firstWorkspace
rescuePeriodInSeconds - the time in seconds a planification is still valid
cronExpression - an optional cronexpression
multiExecution - if the process accepts multiexecution at the same time

public record ProcessTriggeringStrategy(Optional<String> cronExpressionOpt, Map<String,String> initialParams, boolean isMultiExecution, int rescuePeriodInSeconds) extends Record
Strategy for trigerring the process.
Author:
mlaroche
  • Constructor Details

    • ProcessTriggeringStrategy

      public ProcessTriggeringStrategy(Optional<String> cronExpressionOpt, Map<String,String> initialParams, boolean isMultiExecution, int rescuePeriodInSeconds)
      Creates an instance of a ProcessTriggeringStrategy record class.
      Parameters:
      cronExpressionOpt - the value for the cronExpressionOpt record component
      initialParams - the value for the initialParams record component
      isMultiExecution - the value for the isMultiExecution record component
      rescuePeriodInSeconds - the value for the rescuePeriodInSeconds 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • cronExpressionOpt

      public Optional<String> cronExpressionOpt()
      Returns the value of the cronExpressionOpt record component.
      Returns:
      the value of the cronExpressionOpt record component
    • initialParams

      public Map<String,String> initialParams()
      Returns the value of the initialParams record component.
      Returns:
      the value of the initialParams record component
    • isMultiExecution

      public boolean isMultiExecution()
      Returns the value of the isMultiExecution record component.
      Returns:
      the value of the isMultiExecution record component
    • rescuePeriodInSeconds

      public int rescuePeriodInSeconds()
      Returns the value of the rescuePeriodInSeconds record component.
      Returns:
      the value of the rescuePeriodInSeconds record component