@Beta
public interface ObjectiveContext
Implementations of this class must be serializable.
Modifier and Type | Method and 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.
|
default void onSuccess(Objective objective)
objective
- objective to executedefault void onError(Objective objective, ObjectiveError error)
objective
- objective to executeerror
- error encountered