You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Tammo van Lessen (JIRA)" <ji...@apache.org> on 2013/10/21 00:29:42 UTC

[jira] [Resolved] (ODE-1007) Support in-line variable initialization

     [ https://issues.apache.org/jira/browse/ODE-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tammo van Lessen resolved ODE-1007.
-----------------------------------

    Resolution: Duplicate

Thanks for the report, I think its a duplicate of ODE-236 and ODE-915. If not, please reopen.

> Support in-line variable initialization
> ---------------------------------------
>
>                 Key: ODE-1007
>                 URL: https://issues.apache.org/jira/browse/ODE-1007
>             Project: ODE
>          Issue Type: Wish
>          Components: BPEL Runtime
>    Affects Versions: 1.3.6
>            Reporter: Stan Angeloff
>            Priority: Minor
>
> The OASIS WS-BPEL spec ([section 8.1|http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html#_Toc164738495]) mentions that variables can be initialized in-line:
> {code:xml}
>     <variables>
>        <variable name="BPELVariableName"
>           messageType="QName"?
>           type="QName"?
>           element="QName"?>+
>           from-spec?
>        </variable>
>     </variables>
> {code}
> bq. A variable can optionally be initialized by using an in-line from-spec. From-spec is defined in section 8.4. Conceptually the in-line variable initializations are modeled as a virtual <sequence> activity that contains a series of virtual <assign> activities, one for each variable being initialized, in the order they are listed in the variable declarations. The virtual <assign> activities each contain a single virtual <copy> whose from-spec is as given in the variable initialization and the to-spec points to the variable being created.
> I tried:
> {code:xml}
>     <bpel:variable name="variableEmailNextEmailDelivery" type="xsd:dateTime">
>         <bpel:from><![CDATA[current-dateTime()]]></bpel:from>
>     </bpel:variable>
> {code}
> but as soon as I reference `$variableEmailNextEmailDelivery` from a `<bpel:assign />` activity, I get:
> bq. Assignment Fault: {http://docs.oasis-open.org/wsbpel/2.0/process/executable}uninitializedVariable,lineNo=102,faultExplanation=The variable variableEmailNextEmailDelivery isn't properly initialized.
> ----
> Related:
>   [BPEL-308 Support variable initialization per OASIS BPEL 2.0 spec|https://issues.jboss.org/browse/BPEL-308]
>   [Groups - New Action Item #0154 from-spec? inside variable is mi...|https://lists.oasis-open.org/archives/wsbpel/200608/msg00058.html]
> EDIT: Cannot figure out formatting in this thing...



--
This message was sent by Atlassian JIRA
(v6.1#6144)