Interface InstanceStateCallback
-
- All Known Implementing Classes:
InstanceStateNotificationRestStub
,InstanceStateNotificationSseStub
public interface InstanceStateCallback
This is a callback for instance states.- See Also:
InstanceStateNotification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
autoStartPending(@NotNull @Valid EbpInstanceReference activity, @NotNull Long termTime, @NotNull @Valid QualifiedAgent agent, List<URI> rtMgr, @NotNull Boolean rtmResolved)
@NotNull UUID
getId()
Gets the unique ID of this callback.void
instanceFailed(@NotNull UUID instId, @Valid DataContainer dc, @NotNull Long errorCode, String errorMessage, String state)
void
instanceFinished(@NotNull UUID instId, @Valid DataContainer dc)
void
instanceResumed(@NotNull UUID instId, List<URI> newListener, UUID iscId)
void
instanceSuspended(@NotNull UUID instId)
-
-
-
Method Detail
-
getId
@NotNull @NotNull UUID 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
void instanceFinished(@NotNull @NotNull UUID instId, @Valid @Valid DataContainer dc)
-
instanceSuspended
void instanceSuspended(@NotNull @NotNull UUID instId)
-
instanceResumed
void instanceResumed(@NotNull @NotNull UUID instId, List<URI> newListener, UUID iscId)
- Parameters:
iscId
- The UUID of theInstanceStateCallback
that has registered for notifications after resume ornull
in case no callback or no instance ofInstanceStateCallback
has registered for notifications after resume.- See Also:
InstanceStateNotification.instanceResumed(UUID, URI[])
-
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)
-
-