Thanks. It is working.
saleem
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Wednesday, March 09, 2011 1:57 PM
To: Rules Users List
Subject: Re: [rules-users] Need Help writing then part in DSLR
Omit the '-' from the DSL and the DSLR:
[then]The standard error level is ...
-W
2011/3/9 Saleem Lakhani <Saleem.Lakhani(a)citizensfla.com>
Hi,
This is what used to work in Drools 3: Sample from DSL:
[then]A validation error has occurred=ValErrTO valErrTO = new
ValErrTO(); java.util.HashMap variableMap = new java.util.HashMap();
[then]- The standard error level is "{standard_error_level}"=int
stdErrLevel={standard_error_level}; valErrTO.setErrorCode(stdErrLevel);
With Drools 5.2.1 it gives me the following error:
No modify was found to add the modifier to: - The standard error level
is "400"
How do I write the above 2 statements again in Drools 5.2.1, NOTE: I
need to write this in DSL.
Sample DSLR:
rule "Your First Rule"
when
There is a Coverage with
then
#actions
A validation error has occurred
- The standard error level is "400"
end
Thanks,
saleem
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users