Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-27 Thread Wolfgang Laun
the DSL expression? > It seems that it is an error in Drools and I wonder if that should be > reported as an issue in Jira. > > --- On *Fri, 8/27/10, Wolfgang Laun * wrote: > > > From: Wolfgang Laun > Subject: Re: [rules-users] Drools Guvnor: DSL with multiple fact fields &

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-27 Thread Patricia Bogoevici
reported as an issue in Jira. --- On Fri, 8/27/10, Wolfgang Laun wrote: From: Wolfgang Laun Subject: Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval To: "Rules Users List" Date: Friday, August 27, 2010, 2:58 AM It seems that the i

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Wolfgang Laun
> when > asset:Asset( (name=="''", (tag=="''") ) ) > then > end > > 3) simple case > DSL > > [when] There is an Asset=asset:Asset() > [when]-name empty=name=="''" > [when]-tag em

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Patricia Bogoevici
[when]-tag empty=tag=="''" Rule Source:     rule "test_rule"     dialect "mvel"         when     asset:Asset( name=="''", tag=="''" )         then     end Thanks, --- On Thu, 8/26/10, Mauricio Sa

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Mauricio Salatino
can you try with this: [when] There is an Asset=asset:Asset() [when] -name is empty=eval(StringUtils.isBlank(name)) [when] -tag is empty=eval(StringUtils.isBlank(tag)) 2010/8/26 Patricia Bogoevici > Hi all, > > I am using the latest Guvnor release (5.1), and I have the following DSL > expression

[rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-26 Thread Patricia Bogoevici
Hi all, I am using the latest Guvnor release (5.1), and I have the following DSL expression where I use "-" to have conditions on multiple lines: [when] There is an Asset=asset:Asset() [when]- name is empty=eval(StringUtils.isBlank(name)) [when]- tag is empty=eval(StringUtils.isBlank(tag)) Havi