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 Summary
Modifier and TypeMethodDescriptionbuild()Builds the DefaultResult instance with all configured properties.complete(boolean complete) Sets the completion status for this result.destinationId(DestinationId destinationId) Sets the destination ID for this result.Sets the due date for this result.enterStatus(ResultStatus enterStatus) Sets the enter status for this result.exitStatus(ResultStatus exitStatus) Sets the exit status for this result.Sets the ID for this result.Sets the owners for this result using varargs.Sets the owners for this result.postFunctions(Iterable<Function> postFunctions) Sets the post-functions for this result.preFunctions(Iterable<Function> preFunctions) Sets the pre-functions for this result.validators(Iterable<Validator> validators) Sets the validators for this result.
-
Method Details
-
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
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
Sets the owners for this result using varargs.- Parameters:
owner- the owner identifiers- Returns:
- this builder for method chaining
-
postFunctions
Sets the post-functions for this result.- Parameters:
postFunctions- the functions to execute after the transition- Returns:
- this builder for method chaining
-
preFunctions
Sets the pre-functions for this result.- Parameters:
preFunctions- the functions to execute before the transition- Returns:
- this builder for method chaining
-
validators
Sets the validators for this result.- Parameters:
validators- the validators to check before executing the result- Returns:
- this builder for method chaining
-
enterStatus
Sets the enter status for this result.- Parameters:
enterStatus- the status when entering the destination state- Returns:
- this builder for method chaining
-
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
-