Package com.axelor.workflow.plan
Record Class WorkflowPlan.StartPlan
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.StartPlan
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.StartPlan(TriggerKind on, String messageName, Set<String> watch, String when, RepeatPolicy repeat, Integer delay, DelayUnit unit, String next)
extends Record
The start node's firing configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionStartPlan(TriggerKind on, String messageName, Set<String> watch, String when, RepeatPolicy repeat, Integer delay, DelayUnit unit, String next) Creates an instance of aStartPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themessageNamerecord component.next()Returns the value of thenextrecord component.on()Returns the value of theonrecord component.repeat()Returns the value of therepeatrecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.watch()Returns the value of thewatchrecord component.booleanwhen()Returns the value of thewhenrecord component.
-
Constructor Details
-
StartPlan
public StartPlan(TriggerKind on, String messageName, Set<String> watch, String when, RepeatPolicy repeat, Integer delay, DelayUnit unit, String next) Creates an instance of aStartPlanrecord class.- Parameters:
on- the value for theonrecord componentmessageName- the value for themessageNamerecord componentwatch- the value for thewatchrecord componentwhen- the value for thewhenrecord componentrepeat- the value for therepeatrecord componentdelay- the value for thedelayrecord componentunit- the value for theunitrecord componentnext- the value for thenextrecord component
-
-
Method Details
-
watches
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
on
Returns the value of theonrecord component.- Returns:
- the value of the
onrecord component
-
messageName
Returns the value of themessageNamerecord component.- Returns:
- the value of the
messageNamerecord component
-
watch
Returns the value of thewatchrecord component.- Returns:
- the value of the
watchrecord component
-
when
Returns the value of thewhenrecord component.- Returns:
- the value of the
whenrecord component
-
repeat
Returns the value of therepeatrecord component.- Returns:
- the value of the
repeatrecord component
-
delay
Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-