Class OrphanTransitionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.scivicslab.pojoactor.workflow.kustomize.OrphanTransitionException
All Implemented Interfaces:
Serializable

public class OrphanTransitionException extends RuntimeException
Exception thrown when a patch contains a new transition without an anchor.

When adding new transitions via overlay, the patch must include at least one transition that matches an existing transition in the base workflow (an "anchor"). New transitions are inserted relative to the anchor's position.

If a patch contains only transitions that don't exist in the base, this exception is thrown because the insertion position cannot be determined.

Since:
2.12.0
Author:
devteam@scivicslab.com
See Also:
  • Constructor Details

    • OrphanTransitionException

      public OrphanTransitionException(String label, String patchFile)
      Constructs a new OrphanTransitionException.
      Parameters:
      label - the label of the orphan transition
      patchFile - the patch file containing the orphan transition
  • Method Details

    • getLabel

      public String getLabel()
      Gets the label of the orphan transition.
      Returns:
      the transition label
    • getPatchFile

      public String getPatchFile()
      Gets the patch file name.
      Returns:
      the patch file name