ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Malin (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-11180) Service parameter default-value attribut can support flexible string
Date Wed, 04 Sep 2019 11:54:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-11180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16922410#comment-16922410
] 

Nicolas Malin commented on OFBIZ-11180:
---------------------------------------

Thanks both for the review,

[~swapnilmmane] I can't follow your suggestion, becasue adding now on the service context
it's just useless ! Uel is own friend ;) : ${date:nowTimestamp()}

> Service parameter default-value attribut can support flexible string
> --------------------------------------------------------------------
>
>                 Key: OFBIZ-11180
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11180
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Nicolas Malin
>            Assignee: Nicolas Malin
>            Priority: Minor
>         Attachments: OFBIZ-11180.patch
>
>
> 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 :
> {code:java}
>      <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>{code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message