Package com.axelor.workflow.plan
Record Class WorkflowPlan.EndStep
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.EndStep
- Record Components:
terminate- whether reaching it stops the whole run, not just this patherror- ends the run failed under this name instead of completed
- All Implemented Interfaces:
WorkflowPlan.Step
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.EndStep(String id, boolean terminate, String error)
extends Record
implements WorkflowPlan.Step
The walk stops here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.targets()booleanReturns the value of theterminaterecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.axelor.workflow.plan.WorkflowPlan.Step
async, boundaries, catching
-
Constructor Details
-
Method Details
-
type
- Specified by:
typein interfaceWorkflowPlan.Step
-
targets
- Specified by:
targetsin interfaceWorkflowPlan.Step
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceWorkflowPlan.Step- Returns:
- the value of the
idrecord component
-
terminate
public boolean terminate()Returns the value of theterminaterecord component.- Returns:
- the value of the
terminaterecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-