[rules-users] Add another "result" to execution results in Drools Server
mvillis
mvillis at gmail.com
Fri Jan 11 23:39:16 EST 2013
You can add a query into your rule set and then enact it in drools-server via
the query command:
http://docs.jboss.org/drools/release/5.4.0.Final/droolsjbpm-integration-docs/html/ch.commands.html#d0e1842
eg. Ingoing REQUEST with one fact and a query:
<batch-execution>
<insert out-identifier="task" return-object="true" entry-point="DEFAULT">
<au.com.facts.Task>
<process>Receipting</process>
<subProcess>Deposit</subProcess>
<step>Review Contact</step>
</au.com.facts.Task>
</insert>
<fire-all-rules/>
<query out-identifier="return reason facts" name="return reason facts"/>
</batch-execution>
RESPONSE - can see the rules updated the Task fact and also returned the
result of the query (in this example the query returned no facts).
<execution-results>
<result identifier="task">
<au.com.facts.Task>
<process>Receipting</process>
<subProcess>Deposit</subProcess>
<step>Review Contact</step>
<onHoldMinutes>10</onHoldMinutes>
<updated>true</updated>
</au.com.facts.Task>
</result>
<result identifier="return reason facts">
<query-results>
<identifiers/>
</query-results>
</result>
<fact-handle identifier="task"
external-form="0:2:1663973984:415072947:2:DEFAULT"/>
</execution-results>
--
View this message in context: http://drools.46999.n3.nabble.com/Add-another-result-to-execution-results-in-Drools-Server-tp4021434p4021477.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list