how to get value form rule
by Rahul Upadhyay
Hi
I have written a struts application, I write rule through BRMS (using
guided editor ) . here in then (RHS) part It always create new object of my
class and then set the value and I want to set the value in my object so
that can be visiable.
My rule file is following below
rule "password"
dialect "mvel"
when
A1RegistrationForm( passwd1 == ( passwd2 ) )
then
A1RegistrationForm fact0 = new A1RegistrationForm();
fact0.setMessage( "password is matched" );
insert( fact0 );
end
...........................................
I want to setMessage in myobject which is declared in my struts
application, instead of fact0 object in then part.
Please reply
Thanks in advance
--
View this message in context: http://www.nabble.com/how-to-get-value-form-rule-tp14575238p14575238.html
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 12 months
Re: rules-users Digest, Vol 13, Issue 48
by J Michael Dean
Sorry - am using Eclipse in OSX and have no clue how to ask it to dump
its classpath.
I can print out the .classpath file but this is clearly not really
relevant.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="tests"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con"
path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Thanks for your reply. I am looking forward to solving this issue.
- Mike
> I can print out
>
> Message: 1
> Date: Mon, 31 Dec 2007 09:58:06 -0200
> From: "Edson Tirelli" <tirelli(a)post.com>
> Subject: Re: [rules-users] JUnit testing problem
> To: "Rules Users List" <rules-users(a)lists.jboss.org>
> Message-ID:
> <e6dd5ba30712310358y555bf067laaf1c8b5a0acda7c(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Mike,
>
> This looks like a classpath problem indeed. Did you tried asking
> the JVM
> to dump its classpath so that you can know for sure what jars are
> included
> and if any of them embeds a non-compatible ASM version ?
>
> []s
> Edson
>
16 years, 12 months