Interface ActivityStateCallback
-
- All Known Implementing Classes:
ActivityStateNotificationRestStub,ActivityStateNotificationSseStub
public interface ActivityStateCallbackThis is a callback for activity states.- See Also:
ActivityStateNotification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivityClosed(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId)voidactivityFailed(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, @NotNull Long errorCode, String errorMessage, String state)voidactivityReset(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId)voidactivityResumed(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, List<URI> newListener, UUID ascId)voidactivitySignalled(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, @javax.validation.constraints.NotNull int signal)voidactivitySuspended(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId)voidactivitySuspended(@NotNull @Valid EbpInstanceReference activity, @NotNull String sessionId, @javax.validation.constraints.NotNull long timeout)@NotNull UUIDgetId()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 theEbpinstanceReferenceto decide whether to keep the same callback object or whether to register a new one.
If the ID and theEbpinstanceReferenceare 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 theActivityStateCallbackthat has registered for notifications after resume ornullin case no callback or no instance ofActivityStateCallbackhas 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)
-
-