title: Kie Workbench Execute Rules
body: <p>May be this question has been asked number of times but I could not figure out the actual solution by going through them. I have a decision table in KIEWorkbench which takes the input from one fact and sets it into another fact. I am trying to call the rules by invoking the endpoint: <a href="http://localhost:8085/kie-server-6.4.0.Final-ee7/services/rest/server/containers/instances/pocResult" rel="nofollow">http://localhost:8085/kie-server-6.4.0.Final-ee7/services/rest/server/containers/instances/pocResult</a></p>
  
  <p>In the header, I have set  the Content-Type as application/xml.</p>
  
  <pre><code>    &lt;batch-execution lookup="ksession"&gt;
      &lt;insert out-identifier="Subject"&gt;
         &lt;demo.pocFindResult.Subject&gt;
           &lt;bCode&gt; ABC&lt;/bCode&gt;
           &lt;bGCode&gt;XY&lt;/bGCode&gt;
           &lt;pCode&gt;L0001&lt;/pcode&gt;
           &lt;subjectType&gt;CA&lt;/subjectType&gt;
         &lt;/demo.pocFindResult.Subject&gt;
       &lt;/insert&gt;
       &lt;fire-all-rules /&gt;
      &lt;get-objects out-identifier="Result"&gt;
         &lt;demo.pocFindResult.result/&gt;
      &lt;/get-objects&gt;
  </code></pre>
  
  <p></p>
  
  <p>My Decision table is as below:</p>
  
  <pre><code>    package demo.pocFindResult;
  
      //from row number: 1
      rule "Row 1 findrules"
          ruleflow-group "fire-rules"
          dialect "java"
          lock-on-active true
          no-loop true
          when
              sub : Subject( bCode == "ABC" , bGCode == "XY" , subjectType == "CA" , pCode == "L0001" )
          then
              Result rs = new Result();
              rs.setResultStartDate( "*TODAY" );
              rs.setResultEndDate( "*YEAREND" );
              rs.setResultContentStartDate( "*TODAY" );
              rs.setResultContentEndDate( "*YEAREND" );
              insert( rs );
      end
  </code></pre>
  
  <p>How can I get the Result object as the response? Here is my response:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
      &lt;response type="SUCCESS" msg="Container pocResult successfully called."&gt;
          &lt;execution-results&gt;
              &lt;results&gt;
                  &lt;item key="Subject"&gt;
                      &lt;value xsi:type="jaxbListWrapper" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
                          &lt;type&gt;LIST&lt;/type&gt;
                      &lt;/value&gt;
                  &lt;/item&gt;
              &lt;/results&gt;
              &lt;facts&gt;
                  &lt;item key="Subject"/&gt;
              &lt;/facts&gt;
          &lt;/execution-results&gt;
      &lt;/response&gt;
  </code></pre>
  
  <p>I want the result object with the dates set.</p>