Class ChildBpmnCaseInstanceStateChangeCallback
java.lang.Object
org.flowable.cmmn.engine.impl.callback.ChildBpmnCaseInstanceStateChangeCallback
- All Implemented Interfaces:
RuntimeInstanceStateChangeCallback
public class ChildBpmnCaseInstanceStateChangeCallback
extends Object
implements RuntimeInstanceStateChangeCallback
Callback implementation for a child case instance (started from a process instance) returning it's state change to its parent.
- Author:
- Tijs Rademakers, Joram Barrez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonError(CallbackData callbackData, BusinessError error) Called when an uncaughtBusinessErroroccurs in a child instance that has a callback to a parent instance in another engine.voidstateChanged(CallbackData callbackData)
-
Constructor Details
-
ChildBpmnCaseInstanceStateChangeCallback
public ChildBpmnCaseInstanceStateChangeCallback()
-
-
Method Details
-
stateChanged
- Specified by:
stateChangedin interfaceRuntimeInstanceStateChangeCallback
-
onError
Description copied from interface:RuntimeInstanceStateChangeCallbackCalled when an uncaughtBusinessErroroccurs 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.- Specified by:
onErrorin interfaceRuntimeInstanceStateChangeCallback- Parameters:
callbackData- the callback data identifying the parent instanceerror- the business error that was not caught in the child instance
-