[jboss-jira] [JBoss JIRA] Created: (BPEL-308) Support variable initialization per OASIS BPEL 2.0 spec

Aleksander Adamowski (JIRA) jira-events at lists.jboss.org
Thu Aug 6 04:56:41 EDT 2009


Support variable initialization per OASIS BPEL 2.0 spec
-------------------------------------------------------

                 Key: BPEL-308
                 URL: https://jira.jboss.org/jira/browse/BPEL-308
             Project: JBoss jBPM BPEL
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: Engine
    Affects Versions: jBPM BPEL 1.1 GA
            Reporter: Aleksander Adamowski
            Assignee: Alejandro Guizar


OASIS Web Services Business Process Execution Language Version 2.0 specification, section 8.1, states that variables can be initialized upon definition:


"The syntax of the <variables> declaration is: 

<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.  

[SA00026] Variable initialization logic contained in scopes that contain or whose children 
contain a start activity MUST only use idempotent functions in the from-spec. The use of 
idempotent functions allows for all the values for such variables to be pre-computed and re-used 
on each process instance. "

The Eclipse BPEL Business Process Editor supports this - one can select a variable, and in its properties panel choose "Initialization" tab, then e.g. specify From = "Expression", Expression language = "Same as Process (XPath 1.0 in BPEL 2.0)" and input an expression.

Here's an example of such generated variable specification:

<bpws:variable name="myVariable">
    <bpws:from>
        <![CDATA[number(123)]]>
    </bpws:from>
</bpws:variable>

Unfortunately, jBPM BPEL ignores initialization from spec:

DEBUG [org.jbpm.context.exe.VariableContainer] create variable 'myVariable' in 'TokenVariableMap10d7fa4' with value '[myVariable: null]'


This feature of BPEL spec should be supported.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list