Have you tried using 'this.hasStudent("$param")'? Or just writing
'hasStudent("$param").
Thomas
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
bounces(a)lists.jboss.org] On Behalf Of djb
Sent: 08 January 2010 16:30
To: rules-users(a)lists.jboss.org
Subject: [rules-users] Decision table accessing my own methods
Hi there,
I have been trying for hours now to get a decision table that can call my
own methods.
Lets say I've got a Classroom, and a list of 4 students.
And my rule is to not have Bill and Bob in the same classroom.
I have a method Classroom.hasStudent(String name), which will say whether
the room has Bill or Bob.
But how do I call it???
Imagine this is my decision table:
classroom: Classroom
classroom.hasStudent("$param")
Bob
Bill
How in the world do I get it to not say "no viable alternative at input
"bob" for blah blah blah"?
I've also tried classroom.hasStudent("$param") == true with no success.
Please help,
Thank you...
Daniel
--
View this message in context:
http://n3.nabble.com/Decision-table-accessing-
my-own-methods-tp114250p114250.html
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes. To protect the environment please
do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United
Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603
8808 40-00
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.
An NDS Group Limited company.
www.nds.com