Ok, so you need to start using the Drools 5 APIs.<br>Please take a look at the Drools 5 documentation:<br><a href="http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e1375">http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html_single/index.html#d0e1375</a><br>
<br>In the section 3.2 <br><h2 class="title"><a id="d0e312">Using a Process in Your Application</a></h2><br>you will find the correct api&#39;s.<br>Greetings.<br><br><div class="gmail_quote">2009/11/2 Scott Stevenson <span dir="ltr">&lt;<a href="mailto:scott.stevenson@datacert.com">scott.stevenson@datacert.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I’m working with Drools 5.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>
[mailto:<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a>] <b>On Behalf Of </b>Mauricio Salatino<br>
<b>Sent:</b> Monday, November 02, 2009 1:45 PM<br>
<b>To:</b> Rules Users List<br>
<b>Subject:</b> Re: [rules-users] How to execute a Process API result?</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal" style="margin-bottom: 12pt;">Are you working just with the
Drools 4 version?<br>
Or you can jump to the Drools 5 version?</p>

<div>

<p class="MsoNormal">On Mon, Nov 2, 2009 at 5:41 PM, Scott Stevenson &lt;<a href="mailto:scott.stevenson@datacert.com" target="_blank">scott.stevenson@datacert.com</a>&gt;
wrote:</p>

<p class="MsoNormal">I&#39;m trying to execute the result of the Process API and
running into<br>
problems most likely stemming from my ignorance. I&#39;m creating a new<br>
process following the sample code from section 3.1.3.2 of the User<br>
Guide. My sample process consists of:<br>
1. StartNode<br>
2. ActionNode that prints Hello World<br>
3. EndNode<br>
<br>
What I don&#39;t understand is how to get my new process into a<br>
KnowledgeBase and KnowledgeSession for execution. I&#39;ve tried the<br>
following (Drools 4 method, I believe) as well:<br>
<br>
       AbstractRuleBase ruleBase = (AbstractRuleBase)<br>
RuleBaseFactory.newRuleBase();<br>
       ruleBase.addProcess(createProcess());<br>
       InternalWorkingMemory workingMemory = new
ReteooWorkingMemory(1,<br>
ruleBase);<br>
<br>
workingMemory.startProcess(&quot;org.drools.sample.workflow.dynamic&quot;);<br>
<br>
The result of the previous code is a RuntimeException (unable to execute<br>
Action). Inner exception is null pointer from inside the<br>
ActionNodeInstance class. Where am going wrong in implementing the<br>
Process API?<br>
<br>
Thank you,<br>
Scott Stevenson<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></p>

</div>

<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
- <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
- <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
- Salatino &quot;Salaboy&quot; Mauricio -</p>

</div></div></div>

</div>


<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>
<br></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>