Interface ActivityStateCallback
-
- All Known Implementing Classes:
ActivityStateNotificationRestStub
,ActivityStateNotificationSseStub
public interface ActivityStateCallback
This is a callback for activity states.- See Also:
ActivityStateNotification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
activityClosed(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId)
void
activityFailed(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, @NotNull Long errorCode, String errorMessage, String state)
void
activityReset(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId)
void
activityResumed(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, List<URI> newListener, UUID ascId)
void
activitySignalled(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, @javax.validation.constraints.NotNull int signal)
void
activitySuspended(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId)
void
activitySuspended(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, @javax.validation.constraints.NotNull long timeout)
@NotNull UUID
getId()
Gets the unique ID of this callback.
-
-
-
Method Detail
-
getId
@NotNull @NotNull UUID getId()
Gets the unique ID of this callback. When resuming an activity, this ID is used together with theEbpinstanceReference
to decide whether to keep the same callback object or whether to register a new one.
If the ID and theEbpinstanceReference
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.
-
activityClosed
void activityClosed(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull String sessionId)
-
activitySuspended
void activitySuspended(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull String sessionId)
-
activitySuspended
void activitySuspended(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull String sessionId, @NotNull @javax.validation.constraints.NotNull long timeout)
-
activityResumed
void activityResumed(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull String sessionId, List<URI> newListener, UUID ascId)
- Parameters:
ascId
- The UUID of theActivityStateCallback
that has registered for notifications after resume ornull
in case no callback or no instance ofActivityStateCallback
has registered for notifications after resume.- See Also:
ActivityStateNotification.activityResumed(de.aristaflow.adept2.model.processmodel.EBPInstanceReference, String, URI[])
-
activityReset
void activityReset(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull String sessionId)
-
activitySignalled
void activitySignalled(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull String sessionId, @NotNull @javax.validation.constraints.NotNull int signal)
-
activityFailed
void activityFailed(@NotNull @Valid @NotNull @Valid EbpInstanceReference activity, @NotNull @NotNull String sessionId, @NotNull @NotNull Long errorCode, String errorMessage, String state)
-
-