Package decisionrules

Class DecisionRulesService

java.lang.Object
decisionrules.DecisionRulesService

public class DecisionRulesService extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • solve

      public String solve(String ruleIdOrAlias, Object input)
      Parameters:
      ruleIdOrAlias -
      input - - can be any object, it will be serialized to JSON, if string is passed it will be used as is
      Returns:
      JSON string response from the API - further processing is up to the user
    • solve

      public String solve(String ruleIdOrAlias, Object input, Integer version)
      Parameters:
      ruleIdOrAlias -
      input - - can be any object, it will be serialized to JSON, if string is passed it will be used as is
      version - version of a rule
      Returns:
      JSON string response from the API - further processing is up to the user
    • solve

      public String solve(String ruleIdOrAlias, Object input, Integer version, SolverOptions solverOptions)
      Parameters:
      ruleIdOrAlias -
      input - - can be any object, it will be serialized to JSON, if string is passed it will be used as is
      version - version of a rule
      solverOptions - options of solver
      Returns:
      JSON string response from the API - further processing is up to the user
    • validateWebhookSignature

      public boolean validateWebhookSignature(String payload, String signature, String secret)