Package com.yworkflow.definition.model
Interface DefaultResult
- All Superinterfaces:
CanCopy<DefaultResult>,HasId<ResultId>,HasParent<DefaultResult,,Model<?, ?>> Model<DefaultResult,,ResultId> OriginAware<DefaultResult>,Result<DefaultResult>,TransitionAware<DefaultResult>,Validatable
public interface DefaultResult
extends Result<DefaultResult>, Model<DefaultResult,ResultId>, HasParent<DefaultResult,Model<?,?>>, OriginAware<DefaultResult>, TransitionAware<DefaultResult>
Represents the default result of a transition. A default result is the fallback outcome that is
executed when none of the conditions for conditional results are satisfied.
DefaultResult extends the base Result interface and provides additional functionality for building and modifying results. It supports origin and transition awareness, allowing it to understand its context within the workflow.
Default results are essential for ensuring that transitions always have a defined outcome, even when conditional logic doesn't match any specific conditions. They provide a safety net for workflow execution.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionConverts this DefaultResult to an OptionalResultBuilder for modifications.Methods inherited from interface com.yworkflow.definition.model.base.HasParent
withParentMethods inherited from interface com.yworkflow.definition.model.base.Model
getExtensions, getParent, getProperties, getPropertyDifferenceMethods inherited from interface com.yworkflow.definition.model.update.OriginAware
withOriginIdMethods inherited from interface com.yworkflow.definition.model.Result
executePostFunctions, executePreFunctions, getDestination, getDueAt, getEnterStatus, getExitStatus, getOwners, getPostFunctions, getPreFunctions, getValidators, isComplete, verifyInputsMethods inherited from interface com.yworkflow.definition.model.update.TransitionAware
withTransitionIdMethods inherited from interface com.yworkflow.definition.model.validation.Validatable
validate
-
Method Details
-
toResultBuilder
BuildableResultBuilder toResultBuilder()Converts this DefaultResult to an OptionalResultBuilder for modifications. This allows for easy modification of the result without creating a new instance from scratch.- Returns:
- an OptionalResultBuilder initialized with this result's values
-