[ 
https://issues.apache.org/jira/browse/OFBIZ-10020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Malin closed OFBIZ-10020.
---------------------------------
       Resolution: Implemented
    Fix Version/s: Upcoming Release

Done at revision 1816437

> Improve groovy DSL : makeValue accept fields map and call 
> delegator.makeValidValue
> ----------------------------------------------------------------------------------
>
>                 Key: OFBIZ-10020
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10020
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>              Labels: DSL
>             Fix For: Upcoming Release
>
>         Attachments: OFBIZ-10020.patch
>
>
> When you create a Generic value with groovy, you need to initial it with 
> makeValue and after set all fields.
> {code}
> GenericValue product = makeValue('Product')
> product.internalName = parameters.internalName
> {code}
> I propose to simplify this dsl with an automatic parameters check so you can 
> call directly like that :
> {code}
> GenericValue product = makeValue('Product', parameters)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to