Interface RuntimeInstanceStateChangeCallback

All Known Implementing Classes:
ChildBpmnCaseInstanceStateChangeCallback, ChildCaseInstanceStateChangeCallback, ChildProcessInstanceStateChangeCallback

public interface RuntimeInstanceStateChangeCallback
Author:
Joram Barrez
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onError(CallbackData callbackData, BusinessError error)
    Called when an uncaught BusinessError occurs in a child instance that has a callback to a parent instance in another engine.
    void
    stateChanged(CallbackData callbackData)
     
  • Method Details

    • stateChanged

      void stateChanged(CallbackData callbackData)
    • onError

      default void onError(CallbackData callbackData, BusinessError error)
      Called when an uncaught BusinessError occurs in a child instance that has a callback to a parent instance in another engine. This allows cross-engine error propagation. The default implementation re-throws the error (backward compatible). Implementations can override to propagate the error to the parent engine.
      Parameters:
      callbackData - the callback data identifying the parent instance
      error - the business error that was not caught in the child instance