MINILANG COOKBOOK
=================
* How to get results of a Java static method in minilang
Use set and bsh:
WARNING: YOU MUST USE type="" TO CAST YOUR RESULT. Otherwise, it will be a String.
* How to invoke Java from inside minilang
You can actually insert blocks of beanshell code right into minilang, like this example
from applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml:
Each variable from minilang is automatically accessible here in beanshell.
* Clear vs. Refresh
sets it to null. It can be either a field or a Map/GenericValue
gets the value of a GenericValue foo from database again. foo MUST be a GenericValue for it to work.
* How to set a Boolean value
I could not find any examples of this but fortunately got lucky doing this:
I think what minilang does is call the constructor for type="" using the string of value="". I guess one of these days I should look at the code to see if I'm right...