Package org.machanism.machai.gw.tools
Class MoveToEpisodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.machanism.machai.process.tools.SpecialException
org.machanism.machai.gw.tools.MoveToEpisodeException
- All Implemented Interfaces:
Serializable
Control-flow exception that requests navigation to a named or numbered Act
episode.
Embedding processors interpret this exception as an intentional workflow transition rather than an application error. The target may be identified by its one-based numeric identifier, its name, or neither to request the next episode.
- Author:
- Viktor Tovstyi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntegerOptional one-based identifier of the requested target episode.private final StringOptional name of the requested target episode.private static final longSerialization version for compatibility when this control-flow exception is serialized. -
Constructor Summary
ConstructorsConstructorDescriptionMoveToEpisodeException(Integer episodeId, String name) Creates a navigation request for an episode identifier or name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the requested target episode identifier.getName()Returns the requested target episode name.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version for compatibility when this control-flow exception is serialized.- See Also:
-
episodeId
Optional one-based identifier of the requested target episode.A
nullvalue indicates that navigation is not targeted by a numeric identifier. -
episodeName
Optional name of the requested target episode.A
nullvalue indicates that navigation is not targeted by a name.
-
-
Constructor Details
-
MoveToEpisodeException
Creates a navigation request for an episode identifier or name.If
episodeIdisnull, the exception message describes a request to move to the next episode; otherwise, it identifies the supplied numeric target. The episode name is retained independently and may be used by the receiving workflow processor.- Parameters:
episodeId- target one-based episode identifier, ornullname- target episode name, ornullwhen navigation is not targeted by name
-
-
Method Details
-
getEpisodeId
Returns the requested target episode identifier.- Returns:
- the one-based episode identifier, or
nullwhen the target was not specified by identifier
-
getName
Returns the requested target episode name.- Returns:
- the target episode name, or
nullwhen the target was not specified by name
-