[rules-users] String as an argument

Edson Tirelli ed.tirelli at gmail.com
Fri Feb 5 14:06:51 EST 2010


   Khalil,

   Drools does support strings, as it should. Something else is going on
there. I assume you have a proper: public String getId() method.

   All I can suggest is for you to open a jira and attach a test case to
reproduce the problem.

   Edson

2010/2/5 Khalil Hafsi <hafsi at fzi.de>

> Hi Guys,
>
> I am using Drools fusion 5, My "Event" class // @role (event) // has a
> string parameter "id" , however if I try to do :
>
> //
> Rule ..
> ..
>
> $a : Event(id == "a")
> then
> //do something
> end
>
>
> It complains about "Conversion from double is not supported in
> java.lang.String" , is there any way to make it accept String arguments ?
>
> Thanks,
> K.H-
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100205/43ed6cf4/attachment.html 


More information about the rules-users mailing list