Interface BuildableResultBuilder


public interface BuildableResultBuilder
Builder interface for configuring optional properties of DefaultResult instances. This builder is typically returned by mandatory builders and provides optional configuration.
Since:
1.0
See Also:
  • Method Details

    • destinationId

      BuildableResultBuilder destinationId(DestinationId destinationId)
      Sets the destination ID for this result.
      Parameters:
      destinationId - the destination ID for the result
      Returns:
      this builder for method chaining
    • id

      Sets the ID for this result.
      Parameters:
      id - the result ID
      Returns:
      this builder for method chaining
    • dueAt

      Sets the due date for this result.
      Parameters:
      dueAt - the due date in ISO format
      Returns:
      this builder for method chaining
    • exitStatus

      BuildableResultBuilder exitStatus(ResultStatus exitStatus)
      Sets the exit status for this result.
      Parameters:
      exitStatus - the status when exiting the current state
      Returns:
      this builder for method chaining
    • owners

      Sets the owners for this result.
      Parameters:
      owner - the list of owner identifiers
      Returns:
      this builder for method chaining
    • owners

      BuildableResultBuilder owners(String... owner)
      Sets the owners for this result using varargs.
      Parameters:
      owner - the owner identifiers
      Returns:
      this builder for method chaining
    • postFunctions

      BuildableResultBuilder postFunctions(Iterable<Function> postFunctions)
      Sets the post-functions for this result.
      Parameters:
      postFunctions - the functions to execute after the transition
      Returns:
      this builder for method chaining
    • preFunctions

      BuildableResultBuilder preFunctions(Iterable<Function> preFunctions)
      Sets the pre-functions for this result.
      Parameters:
      preFunctions - the functions to execute before the transition
      Returns:
      this builder for method chaining
    • validators

      BuildableResultBuilder validators(Iterable<Validator> validators)
      Sets the validators for this result.
      Parameters:
      validators - the validators to check before executing the result
      Returns:
      this builder for method chaining
    • enterStatus

      BuildableResultBuilder enterStatus(ResultStatus enterStatus)
      Sets the enter status for this result.
      Parameters:
      enterStatus - the status when entering the destination state
      Returns:
      this builder for method chaining
    • complete

      BuildableResultBuilder complete(boolean complete)
      Sets the completion status for this result.
      Parameters:
      complete - true if the result is complete, false otherwise
      Returns:
      this builder for method chaining
    • build

      DefaultResult build()
      Builds the DefaultResult instance with all configured properties.
      Returns:
      a new DefaultResult instance