Package com.axelor.workflow.plan
Record Class WorkflowPlan.EmailStep
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.EmailStep
- All Implemented Interfaces:
WorkflowPlan.Step
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.EmailStep(String id, String template, boolean async, String next, List<WorkflowPlan.Boundary> boundaries)
extends Record
implements WorkflowPlan.Step
A template-based email for the workflow record, with its error boundaries.
-
Constructor Summary
Constructors -
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.targets()template()Returns the value of thetemplaterecord 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
catching
-
Constructor Details
-
EmailStep
public EmailStep(String id, String template, boolean async, String next, List<WorkflowPlan.Boundary> boundaries) Creates an instance of aEmailSteprecord class.- Parameters:
id- the value for theidrecord componenttemplate- the value for thetemplaterecord 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
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord 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
-