0

When executing my rules deployed to the Business Rules service on Bluemix, I see the following error:

ilog.rules.res.decisionservice.IlrDecisionServiceException: Error when executing the ruleset /MyRuleApp/1.0/myrules/1.0 com.ibm.rules.htds.DecisionServiceController.executeRuleset(DecisionServiceController.java:262) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.execute(RESTDecisionServiceServlet.java:930) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.onMessage(RESTDecisionServiceServlet.java:843) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.handleRequest(RESTDecisionServiceServlet.java:750) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:737) com.ibm.rules.htds.servlet.RESTDecisionServiceServlet.doPost(RESTDecisionServiceServlet.java:732) javax.servlet.http.HttpServlet.service(HttpServlet.java:595)

z_blue
  • 350
  • 3
  • 20

1 Answers1

0

I tested the input data from the Bluemix console and realized that I was passing an incorrectly formed payload.

Instead of

{
    "foo": {
        "bar": "bar"
    }
}

I had missed the name of the input parameter "foo":

{
    {
        "bar": "bar"
    }
}

Once I passed the correct input data to the rules, the rules executed successfully.

z_blue
  • 350
  • 3
  • 20