Class ResultStatus
java.lang.Object
com.yworkflow.definition.model.value.ResultStatus
- All Implemented Interfaces:
ModelId,Comparable<ResultStatus>
Represents the status of a workflow result. ResultStatus is used to track the current state of
workflow execution results, providing visibility into the progress and completion status of
workflow operations.
- Since:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResultStatusDefault status for entering a state or result.static final ResultStatusDefault status for exiting a state or result.static final ResultStatusEmpty result status with no value. -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetValue()Gets the string value of this model ID.inthashCode()static ResultStatusorElse(String value, ResultStatus resultStatus) Creates a ResultStatus from the given value, returning the default if the value is null.static ResultStatusCreates a ResultStatus from the given value, returning null if the value is null.propertyMissing(String name) Groovy-style property access method for dynamic property resolution.static ResultStatusresultStatus(String value) Creates a new ResultStatus with the specified value.toString()
-
Field Details
-
EMPTY
Empty result status with no value. -
DEFAULT_ENTER_STATUS
Default status for entering a state or result. -
DEFAULT_EXIT_STATUS
Default status for exiting a state or result.
-
-
Method Details
-
getValue
Description copied from interface:ModelIdGets the string value of this model ID. -
resultStatus
Creates a new ResultStatus with the specified value.- Parameters:
value- the status value- Returns:
- a new ResultStatus instance
- Throws:
IllegalArgumentException- if the value is null or empty
-
orNull
Creates a ResultStatus from the given value, returning null if the value is null.- Parameters:
value- the status value- Returns:
- a ResultStatus instance or null if value is null
-
orElse
Creates a ResultStatus from the given value, returning the default if the value is null.- Parameters:
value- the status valueresultStatus- the default status to return if value is null- Returns:
- a ResultStatus instance
- Throws:
NullPointerException- if resultStatus is null
-
compareTo
- Specified by:
compareToin interfaceComparable<ResultStatus>
-
equals
-
hashCode
public int hashCode() -
toString
-
propertyMissing
Groovy-style property access method for dynamic property resolution.- Parameters:
name- the property name- Returns:
- true if the property name matches the status value, false otherwise
-