Package com.yworkflow.definition.model
Interface ConditionalResult
- All Superinterfaces:
CanCopy<ConditionalResult>,HasId<ResultId>,HasParent<ConditionalResult,,Transition> Model<ConditionalResult,,ResultId> OriginAware<ConditionalResult>,Result<ConditionalResult>,Validatable
public interface ConditionalResult
extends Model<ConditionalResult,ResultId>, HasParent<ConditionalResult,Transition>, Result<ConditionalResult>, OriginAware<ConditionalResult>
Represents a conditional result that is executed when specific conditions are met.
ConditionalResult extends the base Result interface to provide conditional execution based on
workflow attributes and state.
Conditional results are used in transitions to provide different outcomes based on the current workflow state, attributes, or other contextual information. They allow for dynamic workflow behavior where the same transition can lead to different destinations or execute different functions based on runtime conditions.
Conditional results are evaluated in order, and the first one whose conditions are satisfied will be executed. If no conditional results match, the default result will be used.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the conditions that determine when this result should be executed.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.validation.Validatable
validate
-
Method Details
-
getConditions
Conditions getConditions()Gets the conditions that determine when this result should be executed.- Returns:
- the conditions for this conditional result
-