[rules-users] Need Help writing then part in DSLR

Saleem Lakhani Saleem.Lakhani at citizensfla.com
Wed Mar 9 15:22:01 EST 2011


Thanks. It is working. 

 

saleem

 

From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at 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 at 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 at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110309/17c0b984/attachment.html 


More information about the rules-users mailing list