Class PredicateBuilder

Object
akka.javasdk.decision.PredicateBuilder

public final class PredicateBuilder extends Object
Builder for predicate questions. Start with Question.predicate(String). Optionally describe what counts as true and what counts as false, then build the question.
  • Method Details

    • whenTrue

      public PredicateBuilder whenTrue(String description)
      Describe what counts as true.
    • whenFalse

      public PredicateBuilder whenFalse(String description)
      Describe what counts as false.
    • build

      public Question.Predicate build(String key)
      Build the question with the given key. The key identifies the question and its answer, so it must be the same everywhere the question is built, also across restarts and services.