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

Wolfgang Laun wolfgang.laun at gmail.com
Wed Mar 9 13:57:06 EST 2011


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/e642f372/attachment.html 


More information about the rules-users mailing list