[rules-users] Split, mvel

David Sinclair dsinclair at chariotsolutions.com
Tue Mar 3 10:46:29 EST 2009


That is not a valid condition. I believe what u are trying to is this

Patient(type != 'Korte sedatie')

On Tue, Mar 3, 2009 at 10:36 AM, Femke De Backere <femmyke at gmail.com> wrote:

> Hi,
>
> I encountered the following error, trying to insert a Split node in my
> ruleflow.
>
> [8,0]: [ERR 103] Line 8:0 no viable alternative at input 'testType' in rule
> "RuleFlow-Split-masterproef.ruleflows.sedation-4-9"
> [16,5]: [ERR 103] Line 16:5 no viable alternative at input 'testType' in
> rule "RuleFlow-Split-masterproef.ruleflows.sedation-4-5"
> java.lang.IllegalArgumentException: Could not parse knowledge.
> at masterproef.rulerunner.RuleFlowRunner.createKnowledgeBase(
> RuleFlowRunner.java:120)
> at masterproef.rulerunner.RuleFlowRunner.createWorkingMemory(
> RuleFlowRunner.java:94)
> at masterproef.rulerunner.RuleFlowRunner.<init>(RuleFlowRunner.java:81)
> at masterproef.rulerunner.RuleFlowRunner.main(RuleFlowRunner.java:72)
>
> The split node contains the folowing code:
> Patient( testType : type )
> *not* (testType == 'Korte sedatie')
>
> My Patient-class contains a methode getType().
>
> Does anyone know how I can solve the error?
>
> Thx!
>
> Femke
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090303/e3c7bd03/attachment.html 


More information about the rules-users mailing list