Class MatrixCode

java.lang.Object
com.scivicslab.pojoactor.workflow.MatrixCode

public class MatrixCode extends Object
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 Details

    • MatrixCode

      public MatrixCode()
      Constructs an empty MatrixCode.

      This no-argument constructor is required for deserialization.

  • Method Details

    • getName

      public String getName()
      Returns the name of this workflow.
      Returns:
      the workflow name
    • setName

      public void setName(String name)
      Sets the name of this workflow.
      Parameters:
      name - the workflow name
    • getVertices

      public List<Vertex> getVertices()
      Returns the workflow vertices.
      Returns:
      a list of Vertex objects representing the workflow vertices
    • setVertices

      public void setVertices(List<Vertex> vertices)
      Sets the workflow vertices.
      Parameters:
      vertices - a list of Vertex objects representing the workflow vertices
    • getSteps

      @Deprecated public List<Vertex> getSteps()
      Deprecated.
      Use getVertices() instead
      Returns the workflow vertices.
      Returns:
      a list of Vertex objects representing the workflow vertices
    • setSteps

      @Deprecated public void setSteps(List<Vertex> vertices)
      Deprecated.
      Use setVertices(List) instead
      Sets the workflow vertices.
      Parameters:
      vertices - a list of Vertex objects representing the workflow vertices