You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Nicolas Malin (JIRA)" <ji...@apache.org> on 2017/11/27 11:40:00 UTC

[jira] [Closed] (OFBIZ-10020) Improve groovy DSL : makeValue accept fields map and call delegator.makeValidValue

     [ 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)