Could you really compile that rule with &quot;return($step)&quot; as its last  statment? Rule bodies result in void methods, so...<br><br>Anyway, you&#39;ll need to provide an &quot;out&quot; identifier with the &quot;insert&quot; command to get the inserted object back in your results:<br>
   &lt;insert out-identifier=&quot;TheFirstStep&quot;&gt;<br><br>The CommandFactory provides a separate call for that.<br><br>-W<br><br><div class="gmail_quote">On 22 July 2011 23:52, lhorton <span dir="ltr">&lt;<a href="mailto:LHorton@abclegal.com">LHorton@abclegal.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am new to calling Rest services and using drools-server.  I configured the<br>
camel-server.xml and knowledge-services.xml rest service to use xstream<br>
marshalling, added my rules and pojo model to the war, and deployed it on<br>
tomcat.  I wrote a java http client to run the rest service.  This is the<br>
batch command that I&#39;m sending:<br>
<br>
  &lt;set-global identifier=&quot;logger&quot;&gt;<br>
    &lt;org.apache.commons.logging.impl.Log4JLogger&gt;<br>
<br>
&lt;name&gt;com.abclegal.rules.integration.StatusChangeTestIntegration&lt;/name&gt;<br>
    &lt;/org.apache.commons.logging.impl.Log4JLogger&gt;<br>
  &lt;/set-global&gt;<br>
  &lt;insert&gt;<br>
    &lt;com.abclegal.domain.step.VenueValidationStep&gt;<br>
      &lt;id&gt;0&lt;/id&gt;<br>
      &lt;parentTaskId&gt;0&lt;/parentTaskId&gt;<br>
      &lt;status&gt;PENDING&lt;/status&gt;<br>
      &lt;activatable&gt;false&lt;/activatable&gt;<br>
      &lt;abortable&gt;false&lt;/abortable&gt;<br>
      &lt;completable&gt;false&lt;/completable&gt;<br>
    &lt;/com.abclegal.domain.step.VenueValidationStep&gt;<br>
  &lt;/insert&gt;<br>
  &lt;fire-all-rules/&gt;<br>
&lt;/batch-execution&gt;<br>
<br>
this is the rule:<br>
<br>
rule &quot;Activate VenueValidationStep&quot;<br>
dialect &quot;mvel&quot;<br>
        when<br>
                $step : VenueValidationStep(activatable == false, status ==<br>
Status.PENDING)<br>
        then<br>
                logger.debug(&quot;activating VenueValidationStep&quot;);<br>
                modify($step) {<br>
                        setActivatable(true),<br>
                        setStatus(Status.ACTIVE);<br>
                };<br>
                return($step);<br>
end<br>
<br>
when I run the client, I can see on the server log that the global was set<br>
and the correct rule is running (it writes to the log using the global<br>
logger), and i get a 200 response on the http post.  However, the response<br>
body is empty except for the enclosing xml tags.  it contains only:<br>
<br>
&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;&lt;execution-results/&gt;<br>
<br>
The behaviour I would like to happen is that the modified $step would be<br>
returned from the http post.<br>
<br>
Apologies if this is another dumb noob question - I hope it&#39;s just something<br>
simple I&#39;ve missed.  thanks for the help.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/drools-server-empty-response-body-tp3192475p3192475.html" target="_blank">http://drools.46999.n3.nabble.com/drools-server-empty-response-body-tp3192475p3192475.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>