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

Jacques Le Roux commented on OFBIZ-6253:
----------------------------------------

Mmm it's even more complicated than that. In a case using
{code}
        <call-simple-method method-name="getCustomerAddress">
            <result-to-field result-name="resultMap"/>
        </call-simple-method>
{code}
I get in log:
{code}
[java] 2015-04-16 14:49:58,694 |http-bio-8443-exec-8 |ControlServlet      
|TRACE| [[[getCustomerInfoAndAddress(Domain:https://localhost)] Request Begun, 
encoding=[UTF-8]- total:0.0,since last(Begin):0.0]
[java] 2015-04-16 14:49:58,709 |http-bio-8443-exec-8 |MiniLangValidate    
|WARN| Inline scope cannot include <result-to-field> elements. Method = 
getCustomerInfoAndAddress, File = file:/[****], = <call-simple-method>, Line 71
{code}

It's in the same form where it works for the other case (both cases in the same 
form), so the context is almost the same. I will get deeper in this... Of 
course I could rather use a service but I want to debug that, it's convenient 
sometimes...

> Fix <result-to-field> doc for <call-simple-method> in simple-methods-v2.xsd
> ---------------------------------------------------------------------------
>
>                 Key: OFBIZ-6253
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6253
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 12.04, Release Branch 13.07, Release 
> Branch 14.12, Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>
> A wrong assertion in documentation: <result-to-field can only be used with 
> inline scope not function scope
> Fixed in
> trunk r1673764
> R14.12 r1673765
> R13.07 r1673766
> R12.04 r1673767



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to