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

Groovy DSL add success(Map) method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • Trunk
    • None
    • framework

    Description

      Currently when you realized a return success on groovy you can write it with or without a message like :

      return success()

      or

      return success('Wonderfull ! ')

      But if you need return some values you need to follow this pattern

      Map result = success()
      result.myId = myId
      return result

      I proposed to extend sur groovy dsl to write directly

      return success(myId: myId)

      or

      return success('Wonderfull ! ', myId: myId)

      Attachments

        1. OFBIZ-12317.patch
          2 kB
          Nicolas Malin

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: