Package com.axelor.workflow.plan
Record Class WorkflowPlan.Boundary
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.Boundary
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.Boundary(String id, EventKind kind, String code, String name, String key, Integer delay, DelayUnit unit, String until, String when, String next, String title, boolean cancels, Integer repeatCount)
extends Record
A compiled
<boundary>: one way out of its host and where to continue. kind is
its trigger: a timer, a condition, a message or signal, or an error. Live park state is kept on
the park, not here.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanabsolute()Whether this deadline is an instant named byuntil, which is stored, rather than a delay.booleancancels()Returns the value of thecancelsrecord component.booleanA boundary catching its host's failure: never armed or polled, consulted where the failure is raised.code()Returns the value of thecoderecord component.booleanA boundary watching a condition.delay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.family()This boundary's trigger family; a boundary written withoutonis read from its attributes.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.key()Returns the value of thekeyrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.next()Returns the value of thenextrecord component.intHow many times this boundary may fire:repeatCount, else once.Returns the value of therepeatCountrecord component.booleantimed()title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.until()Returns the value of theuntilrecord component.when()Returns the value of thewhenrecord component.
-
Constructor Details
-
Boundary
public Boundary(String id, EventKind kind, String code, String name, String key, Integer delay, DelayUnit unit, String until, String when, String next, String title, boolean cancels, Integer repeatCount) Creates an instance of aBoundaryrecord class.- Parameters:
id- the value for theidrecord componentkind- the value for thekindrecord componentcode- the value for thecoderecord componentname- the value for thenamerecord componentkey- the value for thekeyrecord componentdelay- the value for thedelayrecord componentunit- the value for theunitrecord componentuntil- the value for theuntilrecord componentwhen- the value for thewhenrecord componentnext- the value for thenextrecord componenttitle- the value for thetitlerecord componentcancels- the value for thecancelsrecord componentrepeatCount- the value for therepeatCountrecord component
-
-
Method Details
-
family
This boundary's trigger family; a boundary written withoutonis read from its attributes. -
timed
public boolean timed() -
conditional
public boolean conditional()A boundary watching a condition. Not!timed(), since a failure or message boundary is neither. -
catchesFailure
public boolean catchesFailure()A boundary catching its host's failure: never armed or polled, consulted where the failure is raised. -
absolute
public boolean absolute()Whether this deadline is an instant named byuntil, which is stored, rather than a delay. -
occurrenceLimit
public int occurrenceLimit()How many times this boundary may fire:repeatCount, else once. -
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.- Returns:
- the value of the
idrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord 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
-
until
Returns the value of theuntilrecord component.- Returns:
- the value of the
untilrecord component
-
when
Returns the value of thewhenrecord component.- Returns:
- the value of the
whenrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
cancels
public boolean cancels()Returns the value of thecancelsrecord component.- Returns:
- the value of the
cancelsrecord component
-
repeatCount
Returns the value of therepeatCountrecord component.- Returns:
- the value of the
repeatCountrecord component
-