Interface ObjectiveContext
-
- All Known Implementing Classes:
DefaultObjectiveContext
@Beta public interface ObjectiveContext
The context of a objective that will become the subject of the notification.Implementations of this class must be serializable.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
onError(Objective objective, ObjectiveError error)
Invoked when error is encountered while executing the flow objective.default void
onSuccess(Objective objective)
Invoked on successful execution of the flow objective.
-
-
-
Method Detail
-
onSuccess
default void onSuccess(Objective objective)
Invoked on successful execution of the flow objective.- Parameters:
objective
- objective to execute
-
onError
default void onError(Objective objective, ObjectiveError error)
Invoked when error is encountered while executing the flow objective.- Parameters:
objective
- objective to executeerror
- error encountered
-
-