Uploaded image for project: 'BxMS Documentation'
  1. BxMS Documentation
  2. BXMSDOC-4259

KIE Server REST interface in DRL doc

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • future
    • None
    • None
    • None

      Task: interact with the decision service using the Java client or cURL the REST interface

      Java client

      https://access.redhat.com/documentation/en-us/red_hat_decision_manager/7.3/html-single/designing_a_decision_service_using_drl_rules/index#assets-executing-proc_drl-rules

      The example Java code for testing KIE server via Java client does not compile (missing import), doesn't run (NoClassDefFound ex). No clue on why, but probably broken dependencies. I also have to add that the documentation mentions you should "use the code of the project" but it does not seem to mention how you should get to that (I {{git clone}}d it, but just because I know how)

      cURL

      the task to test the KIE server using cURL, Postman or similar tool was hard to do, because I could not find documentation on how to POST data to the endpoint. I ended up coming up with my own solution by looking it up on the internet, where the only valuable piece of information was posted on a Google Group https://groups.google.com/forum/#!topic/drools-usage/PKbf4wjtleA then inferred this https://gist.github.com/evacchi/72e97f92f7c46337b81a4a40351d756b

      there is no explanation on how object should be represented in the JSON payload (or at least, I could not find it)

            sterobin@redhat.com Stetson Robinson (Inactive)
            evacchi Edoardo Vacchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: