You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Mark Ford (JIRA)" <ji...@apache.org> on 2009/02/03 22:14:00 UTC

[jira] Commented: (ODE-338) Assignment to text() does not work

    [ https://issues.apache.org/jira/browse/ODE-338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670116#action_12670116 ] 

Mark Ford commented on ODE-338:
-------------------------------

The to-spec must result in a destination for the copy operation. For example, in order for <to>$message.main/text()</to> to work, the variable must have been previously assigned a value such that element has a text node. It's not clear from your post if you've done this. Assigning to <to>$message.main</to> will work whether the variable has been initialized or not but if you're trying to select a text node for your destination, you must initialize first. Better yet, don't use text() in your to-spec.

> Assignment to text() does not work
> ----------------------------------
>
>                 Key: ODE-338
>                 URL: https://issues.apache.org/jira/browse/ODE-338
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.2
>            Reporter: Josef Spillner
>             Fix For: 2.0
>
>
> According to the BPEL 2.0 spec, the following should be possible:
> <assign>
>    <copy>
>       <from>$creditApprovalVar/tns:approvedLimit</from>
>       <to>$approvalNotice3Var/text()</to>
>    </copy>
> </assign>
> However, with ODE the assignment is not possible. I'm declaring a variable $message to be of type message:
>   <wsdl:message name="message">
>     <wsdl:part name="main" element="message" />
>   </wsdl:message>
> The element message has a simply type:
>   <s:element name="message" type="s:string"/>
> Now the following is possible, not sure if it is legal:
> <from>substring("12345", 0, 3)</from>
> <to>$message.main</to>
> But not the following, even though it would be legal:
> <from>substring("12345", 0, 3)</from>
> <to>$message.main/text()</to>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.