[
https://issues.apache.org/jira/browse/ODE-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stan Angeloff updated ODE-1007:
-------------------------------
Description:
The OASIS WS-BPEL spec (section 8.1 [1]) mentions that variables can be
initialized in-line:
```
<variables>
<variable name="BPELVariableName"
messageType="QName"?
type="QName"?
element="QName"?>+
from-spec?
</variable>
</variables>
```
> 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.
Related:
BPEL-308 Support variable initialization per OASIS BPEL 2.0 spec [2]
Groups - New Action Item #0154 from-spec? inside variable is mi... [3]
---
I tried:
```
<bpel:variable name="variableEmailNextEmailDelivery" type="xsd:dateTime">
<bpel:from><![CDATA[current-dateTime()]]></bpel:from>
</bpel:variable>
```
but as soon as I reference `$variableEmailNextEmailDelivery` from a
`<bpel:assign />` activity, I get:
> Assignment Fault:
> {http://docs.oasis-open.org/wsbpel/2.0/process/executable}uninitializedVariable,lineNo=102,faultExplanation=The
> variable variableEmailNextEmailDelivery isn't properly initialized.
[1] http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html#_Toc164738495
[2] https://issues.jboss.org/browse/BPEL-308
[3] https://lists.oasis-open.org/archives/wsbpel/200608/msg00058.html
was:
The OASIS WS-BPEL spec (section 8.1) mentions that variables can be initialized
in-line:
```
<variables>
<variable name="BPELVariableName"
messageType="QName"?
type="QName"?
element="QName"?>+
from-spec?
</variable>
</variables>
```
> 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.
> 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 [1]) mentions that variables can be
> initialized in-line:
> ```
> <variables>
> <variable name="BPELVariableName"
> messageType="QName"?
> type="QName"?
> element="QName"?>+
> from-spec?
> </variable>
> </variables>
> ```
> > 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.
> Related:
> BPEL-308 Support variable initialization per OASIS BPEL 2.0 spec [2]
> Groups - New Action Item #0154 from-spec? inside variable is mi... [3]
> ---
> I tried:
> ```
> <bpel:variable name="variableEmailNextEmailDelivery" type="xsd:dateTime">
> <bpel:from><![CDATA[current-dateTime()]]></bpel:from>
> </bpel:variable>
> ```
> but as soon as I reference `$variableEmailNextEmailDelivery` from a
> `<bpel:assign />` activity, I get:
> > Assignment Fault:
> > {http://docs.oasis-open.org/wsbpel/2.0/process/executable}uninitializedVariable,lineNo=102,faultExplanation=The
> > variable variableEmailNextEmailDelivery isn't properly initialized.
> [1]
> http://docs.oasis-open.org/wsbpel/2.0/OS/wsbpel-v2.0-OS.html#_Toc164738495
> [2] https://issues.jboss.org/browse/BPEL-308
> [3] https://lists.oasis-open.org/archives/wsbpel/200608/msg00058.html
--
This message was sent by Atlassian JIRA
(v6.1#6144)