Package com.axelor.workflow.plan
Record Class WorkflowPlan.Selection
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.Selection
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.Selection(String record, String each, String filter, Integer maxSize, Integer batchSize)
extends Record
What a call or subflow runs on: at most one of
record, each and filter,
none meaning this record. maxSize caps an iteration; batchSize pages a filter.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchSizerecord component.booleanWhether the child runs once, which lets the caller wait on it.each()Returns the value of theeachrecord component.final booleanIndicates whether some other object is "equal to" this one.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.booleaniterates()maxSize()Returns the value of themaxSizerecord component.record()Returns the value of therecordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Selection
Creates an instance of aSelectionrecord class.- Parameters:
record- the value for therecordrecord componenteach- the value for theeachrecord componentfilter- the value for thefilterrecord componentmaxSize- the value for themaxSizerecord componentbatchSize- the value for thebatchSizerecord component
-
-
Method Details
-
callActivity
public boolean callActivity()Whether the child runs once, which lets the caller wait on it. -
iterates
public boolean iterates() -
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). -
record
Returns the value of therecordrecord component.- Returns:
- the value of the
recordrecord component
-
each
Returns the value of theeachrecord component.- Returns:
- the value of the
eachrecord component
-
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
maxSize
Returns the value of themaxSizerecord component.- Returns:
- the value of the
maxSizerecord component
-
batchSize
Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-