Package com.axelor.workflow.plan
Record Class WorkflowPlan.ScriptStep
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.ScriptStep
- All Implemented Interfaces:
WorkflowPlan.Step
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.ScriptStep(String id, String script, boolean async, String next, List<WorkflowPlan.Boundary> boundaries)
extends Record
implements WorkflowPlan.Step
Runs a script body against the record context; it may create and save records.
-
Constructor Summary
ConstructorsConstructorDescriptionScriptStep(String id, String script, boolean async, String next, List<WorkflowPlan.Boundary> boundaries) Creates an instance of aScriptSteprecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanasync()Returns the value of theasyncrecord component.Returns the value of theboundariesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.next()Returns the value of thenextrecord component.script()Returns the value of thescriptrecord component.targets()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
catching
-
Constructor Details
-
ScriptStep
public ScriptStep(String id, String script, boolean async, String next, List<WorkflowPlan.Boundary> boundaries) Creates an instance of aScriptSteprecord class.- Parameters:
id- the value for theidrecord componentscript- the value for thescriptrecord componentasync- the value for theasyncrecord componentnext- the value for thenextrecord componentboundaries- the value for theboundariesrecord component
-
-
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
-
script
Returns the value of thescriptrecord component.- Returns:
- the value of the
scriptrecord component
-
async
public boolean async()Returns the value of theasyncrecord component.- Specified by:
asyncin interfaceWorkflowPlan.Step- Returns:
- the value of the
asyncrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-
boundaries
Returns the value of theboundariesrecord component.- Specified by:
boundariesin interfaceWorkflowPlan.Step- Returns:
- the value of the
boundariesrecord component
-