Re: Users - sendMailToRoles
Posted by
Andrew Sykes on
Apr 28, 2006; 11:12am
URL: http://ofbiz.116.s1.nabble.com/Users-sendMailToRoles-tp138731p138734.html
Charles,
> I'll check the IN/OUT parameters - not really 100% sure how that works anyway.
A quick summary...
OFBiz services take and return a Map of values, input values are
validated before the service is run and output values are validated
after the service runs.
The services.xml (called this by convention - not imperative) file is
used to define the input and output parameters as well as their type, so
the definition of a parameter looks something like this...
<attribute name="myvalue" type="String" mode="IN" optional="true"/>
"myvalue" is the name you assign to your parameter.
e.g. when compiling the input map you might do something like
inputMap.put("myvalue",new String("This is my input value"));
"type" is the java type, any java type is allowed here (e.g.
java.util.List )
"mode" can be either...
IN input parameter only
OUT output parameter only
INOUT used as both an input and output parameter
"optional" if set to false then service validation will fail if the
parameter is missing.
I hope that helps.
--
Kind Regards
Andrew Sykes <
[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users