/[Apache-SVN]
ViewVC logotype

Revision 1866380


Jump to revision: Previous Next
Author: nmalin
Date: Wed Sep 4 12:05:26 2019 UTC (4 years, 7 months ago)
Changed paths: 2
Log Message:
Implemented: Service parameter default-value attribut can support flexible string
(OFBIZ-11180)

When you define a service with default-value, you can't set simple dynamic resolution for the value.
The improvement 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=/>
     </service>

Thanks Jacques Le Roux and Swapnil M Mane for the review

Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelParam.java modified , text changed
Directoryofbiz/ofbiz-framework/trunk/framework/service/src/main/java/org/apache/ofbiz/service/ModelService.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26