Are you working just with the Drools 4 version?<br>Or you can jump to the Drools 5 version?<br><br><div class="gmail_quote">On Mon, Nov 2, 2009 at 5:41 PM, Scott Stevenson <span dir="ltr"><<a href="mailto:scott.stevenson@datacert.com">scott.stevenson@datacert.com</a>></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'm trying to execute the result of the Process API and running into<br>
problems most likely stemming from my ignorance. I'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't understand is how to get my new process into a<br>
KnowledgeBase and KnowledgeSession for execution. I'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("org.drools.sample.workflow.dynamic");<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">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>
</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 "Salaboy" Mauricio -<br>