2011/3/4 Sale
>
> This is my DSLR:
>
> package cit.coverage;
>
> expander Coverage.dsl
>
> rule "rrr"
>
> auto-focus true
>
> when
>
> He is nice
>
> then
>
> He is happy
>
> end
>
> *This is my DSL** Coverage.dsl**:*
>
> [condition][]He is nice=eval(true)
>
> [consequence][]He is happy=eval(System.out.println("HA HA"))
>
This is not a correct Java statement, as it should be for the consequence:
- eval() is not valid here
- There is no semicolon at the end
This would be correct:
[consequence][]He is happy=System.out.println("HA HA");
The NPE should be gone in 5.2.0.
-W
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users