List Info

Thread: Re: Re: Compilation failed on BRMS with multi-consequence DSL phrase




Re: Re: Compilation failed on BRMS with multi-consequence DSL phrase
country flaguser name
United States
2008-05-14 10:16:32
Yet another follow up to below,

On Tue, 2008-05-13 at 12:16 -0400, Benjamin J McMillan
wrote:
> On Tue, 2008-05-13 at 12:05 -0400, Benjamin J McMillan
wrote:
> > I have a single DSL phrase that performs 2
actions, delimited by a
> > semicolon. This compiles and works fine under
Eclipse. However, when I
> > uploaded the same DSL to the BRMS and rewrote the
same rule that uses
> > this phrase, rule validation failed:

> So, it seems this only affects the BRMS' guided rule
editor.

I apologize for not narrowing this down further before
posting last
time. I did some more testing and discovered that the issue
was not
multiple actions but rather the way we were using
"modify" inside the
DSL (still, using the guided editor). 

Apparently, the guided editor's validator only accepts MVEL
(bean) style
assignments within a modify statement (ie, location =
"foo" ->
setLocation("foo")) AND NOT either a setter or any
other public method
(ie, setLocation("foo") or
addLocation("foo","bar")).

The text based (DSL assisted) editor successfully validates
the java
style DSL phrase as used in the same rule. 

My initial post includes the DSL phrase in question.

Thanks,
Ben

_______________________________________________
rules-users mailing list
rules-userslists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users

Re: Re: Compilation failed on BRMS with multi-consequence DSL phrase
country flaguser name
United States
2008-05-14 14:42:35
Sorry for all the emails. We figured it out. 

It turns out that the guided editor in the BRMS forces the
MVEL dialect
by default. However, if you explicitly set the dialect to
java in the
options, it will work (validate). This allows us to call
functions in
the DSL phrases rather than being limited to getters/setters
via MVEL.

Cheers,
(a much happier) Ben

On Wed, 2008-05-14 at 11:16 -0400, Benjamin J McMillan
wrote:
> On Tue, 2008-05-13 at 12:16 -0400, Benjamin J McMillan
wrote:
> > So, it seems this only affects the BRMS' guided
rule editor.
>
> Apparently, the guided editor's validator only accepts
MVEL (bean) style
>
> The text based (DSL assisted) editor successfully
validates the java
> style DSL phrase as used in the same rule. 



_______________________________________________
rules-users mailing list
rules-userslists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )