[rules-users] Need Help writing then part in DSLR
Saleem Lakhani
Saleem.Lakhani at citizensfla.com
Wed Mar 9 13:45:27 EST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110309/b8484e74/attachment.html
More information about the rules-users
mailing list