A simple tip when creating DSLs:
Write an example rule as DRL first!
:)
Then, if it's working DRL code (get familiar with unit testing rules) use DSL to map 'plain English' phrases to the DRL code you just wrote.
It's then also worth writing a simple unit test around a hand-cranked DSRL rule which uses your DSL, before sticking it in Guvnor.
In the sentence 'Transaction.setChargeFee( true)', 'Transaction' is not making reference to the fact (unless you have bound it and you are not showing that piece) but to the class named 'Transaction'.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users