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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Implemented
    • Trunk
    • 17.12.01
    • framework

    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

            nmalin Nicolas Malin
            nmalin Nicolas Malin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: