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

Service parameter default-value attribut can support flexible string

    XMLWordPrintableJSON

Details

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

    Description

      When you define a service with default-value, you can't set simple dynamic resolution for the value.

      The idea is to extend the default-value attribut on service parameter to support the FlexibleStringExpander syntax and realize the expand on service context.

      Example :

           <service name="createPicklist" default-entity-name="Picklist" engine="entity-auto" invoke="create" auth="true">
              <auto-attributes include="pk" mode="OUT" optional="false"/>
              <auto-attributes include="nonpk" mode="IN" optional="true"/>
              <override name="statusId" default-value="PICKLIST_INPUT"/>
              <override name="picklistDate" default-value="${now}"/>
          </service>

      Attachments

        1. OFBIZ-11180.patch
          5 kB
          Nicolas Malin

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: