Class NonDeterministicException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NonDeterministicException
    extends java.lang.IllegalStateException
    Thrown if history events from the server don't match commands issued by the execution or replay of workflow code.
    This exception usually means that there is some form of non-determinism in workflow code that has lead to a difference in the execution path taken upon replay when compared to initial execution. That is to say the history the worker received for this workflow cannot be processed by the current workflow code. If this happens during the replay of a new Workflow Task, this exception will cause the Workflow Task to fail WorkflowTaskFailedCause.WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NonDeterministicException

        public NonDeterministicException​(java.lang.String message,
                                         java.lang.Throwable cause)
      • NonDeterministicException

        public NonDeterministicException​(java.lang.String message)