Nicolas Malin created OFBIZ-11180:

             Summary: Service parameter default-value attrubut can support 
flexible string
                 Key: OFBIZ-11180
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: Trunk
            Reporter: Nicolas Malin
            Assignee: Nicolas Malin

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 

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}"/>

This message was sent by Atlassian Jira

Reply via email to