Package com.axelor.workflow.plan
Record Class WorkflowPlan
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan
public record WorkflowPlan(String id, String name, WorkflowPlan.StartPlan start, Map<String,WorkflowPlan.Step> steps)
extends Record
The immutable compiled form of a workflow, produced by
WorkflowCompiler. The runtime
reads only this, never the XML.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordInvokes an AI agent withpromptand binds the answer asagent.static final recordA compiled<boundary>: one way out of its host and where to continue.static final recordstatic interfaceWhere a child graph comes from:WorkflowPlan.Callee.Refnames another definition, resolved when the node runs;WorkflowPlan.Callee.Inlinecarries the body's plan, compiled with the caller and so pinned to its revision.static final recordA<call>: runs the workflow namedrefas a child run.static final recordA template-based email for the workflow record, with its error boundaries.static final recordThe walk stops here.static interfaceA<call>or<subflow>: a child graph run over a selection.static interfaceA join's completion policy:Allwaits for every selected branch to arrive or end,Quorum(n)for the firstnarrivals, cancelling the rest (n=1isany).static final recordA join: thesome/allsplit it closes and its completion policy.static final recordRuns a script body against the record context; it may create and save records.static final recordWhat a call or subflow runs on: at most one ofrecord,eachandfilter, none meaning this record.static final recordA compiled<send>: a message (name and key) or a signal (name alone), and where the walk goes next.static final recordA split.static final recordThe start node's firing configuration.static interfaceA compiled node.static final recordA<subflow>: runs its embeddedbodyinside this run.static final recordA human task.static final record -
Constructor Summary
ConstructorsConstructorDescriptionWorkflowPlan(String id, String name, WorkflowPlan.StartPlan start, Map<String, WorkflowPlan.Step> steps) Creates an instance of aWorkflowPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionboundaryTargets(String next, List<WorkflowPlan.Boundary> boundaries) A node's edges: its continuation, then one per boundary, in order and without duplicates.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.name()Returns the value of thenamerecord component.start()Returns the value of thestartrecord component.The first executable node: the start'snext.steps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkflowPlan
public WorkflowPlan(String id, String name, WorkflowPlan.StartPlan start, Map<String, WorkflowPlan.Step> steps) Creates an instance of aWorkflowPlanrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentstart- the value for thestartrecord componentsteps- the value for thestepsrecord component
-
-
Method Details
-
startNodeId
The first executable node: the start'snext. -
step
-
boundaryTargets
A node's edges: its continuation, then one per boundary, in order and without duplicates. -
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-