<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>&nbsp;&nbsp;&nbsp; at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1090)<br>&nbsp;&nbsp;&nbsp; at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:301)<br>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; /**<br>&nbsp;&nbsp;&nbsp; &nbsp;* @param args<br>&nbsp;&nbsp;&nbsp; &nbsp;*/<br>&nbsp;&nbsp;&nbsp; public static void main(String[] args) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // TODO Auto-generated method stub<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; KnowledgeBase kbase=readBase();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ksession.startProcess("sayhi"); //ID of the process which is created in Designer<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; // ksession.fireAllRules();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ksession.dispose();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; catch(Throwable t)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; t.printStackTrace();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; private static KnowledgeBase readBase()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("AccountAgent");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Resource changeset = ResourceFactory.newClassPathResource("com/simple/ProcessChangeSet.xml");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; kagent.applyChangeSet(changeset);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; KnowledgeBase kbase = kagent.getKnowledgeBase();<br>&nbsp; <br>&nbsp;&nbsp;&nbsp; return kbase;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }<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:&nbsp; IT Services</font></font><br><font color="#0000ff"><font color="#000000">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; Business Solutions</font></font><br><font color="#0000ff"><font color="#000000">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 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>