Interface InstanceStateCallback
- All Known Implementing Classes:
InstanceStateNotificationRestStub,InstanceStateNotificationSseStub
public interface InstanceStateCallback
This is a callback for instance states.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidautoStartPending(@NotNull @Valid EbpInstanceReference activity, @NotNull Long termTime, @NotNull @Valid QualifiedAgent agent, List<URI> rtMgr, @NotNull Boolean rtmResolved) @NotNull UUIDgetId()Gets the unique ID of this callback.voidinstanceFailed(@NotNull UUID instId, @Valid DataContainer dc, @NotNull Long errorCode, String errorMessage, String state) voidinstanceFinished(@NotNull UUID instId, @Valid DataContainer dc) voidinstanceResumed(@NotNull UUID instId, List<URI> newListener, UUID iscId) voidinstanceSuspended(@NotNull UUID instId)
-
Method Details
-
getId
Gets the unique ID of this callback. When resuming an instance, this ID is used together with the instance Id to decide whether to keep the same callback object or whether to register a new one.
If the ID and the instance ID are the same but the object instance is different, the new callback instance will be ignored when resuming an activity and the old one will be kept.- Returns:
- The unique ID of this callback allowing to decide whether to keep or re-register a callback when resuming.
-
instanceFinished
-
instanceSuspended
-
instanceResumed
- Parameters:
iscId- The UUID of theInstanceStateCallbackthat has registered for notifications after resume ornullin case no callback or no instance ofInstanceStateCallbackhas registered for notifications after resume.- See Also:
-
instanceFailed
void instanceFailed(@NotNull @NotNull UUID instId, @Valid @Valid DataContainer dc, @NotNull @NotNull Long errorCode, String errorMessage, String state) -
autoStartPending
void autoStartPending(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull Long termTime, @NotNull @Valid @NotNull @Valid QualifiedAgent agent, List<URI> rtMgr, @NotNull @NotNull Boolean rtmResolved)
-