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 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 execute
        error - error encountered