Interface OutcomeProvider

All Known Subinterfaces:
StaticOutcomeProvider
All Known Implementing Classes:
AbstractDecisionNode.OutcomeProvider, IotAuthenticationNode.AuthenticationOutcomeProvider, IotRegistrationNode.RegistrationOutcomeProvider, SingleOutcomeNode.OutcomeProvider

@SupportedAll public interface OutcomeProvider
Describes the outcomes for node instances.
  • Method Details

    • getOutcomes

      List<OutcomeProvider.Outcome> getOutcomes(PreferredLocales locales, JsonValue nodeAttributes) throws NodeProcessException
      Returns a ordered list of possible node outcomes with localised display names.
      Parameters:
      locales - The locales for the localised description.
      nodeAttributes - Unvalidated node attributes submitted in the request.
      Returns:
      A non-null list of outcomes. May be empty.
      Throws:
      NodeProcessException - If outcomes could not be determined.