Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10020

Improve groovy DSL : makeValue accept fields map and call delegator.makeValidValue

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: 17.12.01
    • Component/s: framework
    • Labels:

      Description

      When you create a Generic value with groovy, you need to initial it with makeValue and after set all fields.

      GenericValue product = makeValue('Product')
      product.internalName = parameters.internalName
      

      I propose to simplify this dsl with an automatic parameters check so you can call directly like that :

      GenericValue product = makeValue('Product', parameters)
      

        Attachments

        1. OFBIZ-10020.patch
          0.8 kB
          Nicolas Malin

          Activity

            People

            • Assignee:
              soledad Nicolas Malin
              Reporter:
              soledad Nicolas Malin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: