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)