ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stan Angeloff <stani...@angeloff.name>
Subject How to check if a variable has been initialized?
Date Thu, 03 Mar 2016 12:26:03 GMT
Hi all,

I am running into a case where I need to check if a variable has been
initialized in a *<bpel:condition />*. The variable is first defined inside
*<bpel:variables>* without inline initialization. The following condition
is then added to a *<bpel:repeatUntil>*:

($variableIf_2Out.parameters/getStatusResult/status = 'CLICKED')

However *$variableIf_2Out* may not have been initialized as the
*<bpel:invoke>* activity that outputs it is conditional and may not have
been encountered yet.

I tried with:

(exists($variableIf_2Out) and
$variableIf_2Out.parameters/getStatusResult/status = 'CLICKED')

but that didn't seem to help (the expression language is set to

In a desperate attempt I tried:

(exists(bpel:getVariableData('variableIf_2Out', 'parameters')) and
$variableIf_2Out.parameters/getStatusResult/status = 'CLICKED')

and even:

<bpel:condition xmlns:bpws="
(exists(bpws:getVariableData('variableIf_2Out', 'parameters')) and
$variableIf_2Out.parameters/getStatusResult/status = 'CLICKED')

That didn't get me anywhere either (according to the logs the function is
not defined or arguments cannot be matched).

Is there a way in ODE by which a variable can be checked to have been

- Stan

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message