getVariableData function does not return the actual value even for simple typed variables
-----------------------------------------------------------------------------------------
Key: BPEL-301
URL:
https://jira.jboss.org/jira/browse/BPEL-301
Project: JBoss jBPM BPEL
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Engine
Affects Versions: jBPM BPEL 1.1 GA
Reporter: Jay Yan
Assignee: Alejandro Guizar
According to BPEL 1.1 Spec, the function getVariableData should behave in this way:
"When only the first argument is present, the function extracts the value of the
variable, which in this case must be defined using an XML Schema simple type or element.
Otherwise, the return value of this function is a node set containing the single
node..."
However, even when a variable is defined using a simple type such as
type="xsd:int", getVariableData () call on that variable still return the node
instead of the numeric value. As the result, array[getVariableData(var)] does not work,
while array[position()=getVariableData(var)] and array[number(getVariableData(var))] both
work.
--
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