<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> Hi <br><br>I am using Drool-5.2.0 final, Guvnor 5.2.0 final and designer-2.0-jboss.war in Drools-Guvnor.<br>In Designer, I created simple process with start node, one task node, and end node. I made Task type of task node as "Script". I entered simple java code as System.out.print("Hi "); in the Script option of the task node. <br>Sorry I dont know API's used for loading this process in Eclipse.<br>So can any one tell me the API's used for loading this process in Eclipse.? <br><br>I tried alot, but i am getting exceptions as:<br><br>java.lang.NullPointerException<br> at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1090)<br> at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:301)<br> at com.simple.Mainclass.main(Mainclass.java:30)<br><br><br>I am also sending my code:<br><br><br>package com.simple;<br><br>import org.drools.KnowledgeBase;<br>import org.drools.agent.KnowledgeAgent;<br>import org.drools.agent.KnowledgeAgentFactory;<br>import org.drools.io.Resource;<br>import org.drools.io.ResourceFactory;<br>import org.drools.rule.FactType;<br>import org.drools.runtime.StatefulKnowledgeSession;<br><br>public class Mainclass {<br><br> /**<br> * @param args<br> */<br> public static void main(String[] args) {<br> // TODO Auto-generated method stub<br><br> try<br> {<br> KnowledgeBase kbase=readBase();<br> StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();<br> <br> ksession.startProcess("sayhi"); //ID of the process which is created in Designer<br> <br> // ksession.fireAllRules();<br> <br> ksession.dispose();<br> <br> <br> }<br> catch(Throwable t)<br> {<br> <br> t.printStackTrace();<br> <br> <br> }<br><br> }<br> private static KnowledgeBase readBase()<br> {<br> <br> KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("AccountAgent");<br> <br> Resource changeset = ResourceFactory.newClassPathResource("com/simple/ProcessChangeSet.xml");<br> <br> <br> kagent.applyChangeSet(changeset);<br> <br> KnowledgeBase kbase = kagent.getKnowledgeBase();<br> <br> return kbase;<br> <br> <br> }<br><br>}<br><br><br><br>Please guide me in proper way.<br>Thanks in advance.<br><br><span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font style="font-family: Arial,Default Sans Serif,Verdana,Arial,Helvetica,sans-serif;" face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="3"><font color="#ff33cc"></font><p><font color="#ff33cc"><br><br><br><font color="#000000">Thanks and regards,</font></font><br><font color="#ff33cc"><font color="#000000">Manohar Kokkula</font></font><br><font color="#000000">Sub Focus Area Product Expert -</font><font size="3"> BPM/BRE</font><font color="#000000"><font color="#000000"><br></font>CEG - Open Source Technology Group<br></font><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font style="font-family: Arial,Default Sans Serif,Verdana,Arial,Helvetica,sans-serif;" face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="3">YantraPark,Thane(West)<br>Mumbai</font></font><font size="+0"><font color="#000000"><br>Ph:- +91 8793839453</font></font><br><font color="#ff33cc"><font color="#000000">Mailto: manohar.kokkula@tcs.com</font></font><br><font color="#ff33cc"><font color="#000000">Website: http://www.tcs.com</font><br><font color="#0000ff"><font color="#000000">___________________________________________</font></font><br><font color="#0000ff"><font color="#000000">Experience certainty: IT Services</font></font><br><font color="#0000ff"><font color="#000000"> Business Solutions</font></font><br><font color="#0000ff"><font color="#000000"> Outsourcing</font></font><br><font color="#0000ff"><font color="#000000">____________________________________________</font></font><br></font></p></font></font></span><br><div></div></font><pre style="white-space:normal">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>confidential or privileged information. If you are <br>not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>you have received this communication in error, <br>please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre>