<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thx! This code did the trick!!!<div><br></div><div>Femke</div><div><br><div><div>Op 3-mrt-09, om 16:46 heeft David Sinclair het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite">That is not a valid condition. I believe what u are trying to is this<br><br>Patient(type != 'Korte sedatie')<br><br><div class="gmail_quote">On Tue, Mar 3, 2009 at 10:36 AM, Femke De Backere <span dir="ltr">&lt;<a href="mailto:femmyke@gmail.com">femmyke@gmail.com</a>&gt;</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;"><div style=""><div style=""><div style="margin: 0px;"><font color="#050505">Hi,&nbsp;</font></div> <div style="margin: 0px;"><font color="#050505"><br></font></div><div style="margin: 0px;"><font color="#050505">I encountered the following error, trying to insert a Split node in my ruleflow.&nbsp;</font></div><div style="margin: 0px; color: rgb(255, 0, 0);"> <br></div><div style="margin: 0px; color: rgb(255, 0, 0);">[8,0]: [ERR 103] Line 8:0 no viable alternative at input 'testType' in rule "RuleFlow-Split-masterproef.ruleflows.sedation-4-9"</div><div style="margin: 0px; color: rgb(255, 0, 0);"> [16,5]: [ERR 103] Line 16:5 no viable alternative at input 'testType' in rule "RuleFlow-Split-masterproef.ruleflows.sedation-4-5"</div><div style="margin: 0px; color: rgb(0, 0, 128);"><span style="text-decoration: underline;">java.lang.IllegalArgumentException</span><span style="color: rgb(255, 0, 0);">: Could not parse knowledge.</span></div> <div style="margin: 0px; color: rgb(255, 0, 0);"><span style="white-space: pre;">        </span>at masterproef.rulerunner.RuleFlowRunner.createKnowledgeBase(<span style="text-decoration: underline; color: rgb(0, 0, 128);">RuleFlowRunner.java:120</span>)</div> <div style="margin: 0px; color: rgb(255, 0, 0);"><span style="white-space: pre;">        </span>at masterproef.rulerunner.RuleFlowRunner.createWorkingMemory(<span style="text-decoration: underline; color: rgb(0, 0, 128);">RuleFlowRunner.java:94</span>)</div> <div style="margin: 0px; color: rgb(255, 0, 0);"><span style="white-space: pre;">        </span>at masterproef.rulerunner.RuleFlowRunner.&lt;init&gt;(<span style="text-decoration: underline; color: rgb(0, 0, 128);">RuleFlowRunner.java:81</span>)</div> <div style="margin: 0px; color: rgb(255, 0, 0);"><span style="white-space: pre;">        </span>at masterproef.rulerunner.RuleFlowRunner.main(<span style="text-decoration: underline; color: rgb(0, 0, 128);">RuleFlowRunner.java:72</span>)</div> <div style="margin: 0px; color: rgb(255, 0, 0);"><br></div><div style="margin: 0px;"><font color="#030205">The split node contains the folowing code:</font></div><div style="margin: 0px; color: rgb(255, 0, 0);"><div style="margin: 0px;"> <font color="#030205">Patient( testType : type )</font></div><div style="margin: 0px;"><b><font color="#030205">not</font></b><font color="#030205">&nbsp;(testType == 'Korte sedatie')</font></div><div style="margin: 0px;"> <font color="#030205"><br></font></div><div style="margin: 0px;"><font color="#030205">My Patient-class contains a methode getType().</font></div><div style="margin: 0px;"><font color="#030205"><br></font></div><div style="margin: 0px;"> <font color="#030205">Does anyone know how I can solve the error?</font></div><div style="margin: 0px;"><font color="#030205"><br></font></div><div style="margin: 0px;"><font color="#030205">Thx!</font></div><div style="margin: 0px;"> <font color="#030205"><br></font></div><font color="#888888"><div style="margin: 0px;"><font color="#030205">Femke</font></div></font></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>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote></div><br></div></body></html>