ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Malin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OFBIZ-10020) Improve groovy DSL : makeValue accept fields map and call delegator.makeValidValue
Date Sun, 26 Nov 2017 19:14:00 GMT
Nicolas Malin created OFBIZ-10020:
-------------------------------------

             Summary: 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


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)

Mime
View raw message