Class MatrixCode
java.lang.Object
com.scivicslab.pojoactor.workflow.MatrixCode
Represents a matrix-based workflow definition.
A MatrixCode contains a name and a list of Vertex objects that define
the workflow's state transitions and actions. Each vertex in the matrix represents
a state transition with associated actions to execute.
This class is designed to be populated from YAML or JSON workflow definitions using deserialization frameworks like SnakeYAML or Jackson.
- Author:
- devteam@scivics-lab.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this workflow.getSteps()Deprecated.Returns the workflow vertices.voidSets the name of this workflow.voidDeprecated.UsesetVertices(List)insteadvoidsetVertices(List<Vertex> vertices) Sets the workflow vertices.
-
Constructor Details
-
MatrixCode
public MatrixCode()Constructs an empty MatrixCode.This no-argument constructor is required for deserialization.
-
-
Method Details
-
getName
Returns the name of this workflow.- Returns:
- the workflow name
-
setName
Sets the name of this workflow.- Parameters:
name- the workflow name
-
getVertices
Returns the workflow vertices.- Returns:
- a list of
Vertexobjects representing the workflow vertices
-
setVertices
Sets the workflow vertices.- Parameters:
vertices- a list ofVertexobjects representing the workflow vertices
-
getSteps
Deprecated.UsegetVertices()insteadReturns the workflow vertices.- Returns:
- a list of
Vertexobjects representing the workflow vertices
-
setSteps
Deprecated.UsesetVertices(List)insteadSets the workflow vertices.- Parameters:
vertices- a list ofVertexobjects representing the workflow vertices
-
getVertices()instead