Name

BPEL.BPEL.setVariableData — sets BPEL variable data within code invoked from <bpelv:exec binding="SQL"> activity

Synopsis

BPEL.BPEL.setVariableData ( in var_name varchar ,
in value any ,
in part varchar ,
in query varchar );

Parameters

var_name

varchar the name of BPEL variable

value

any the value to be set. Can be XML tree or varchar

part

varchar default null the part of BPEL variable in question.

query

varchar default null XPATH query for selecting data in the BPEL variable

Return Types

this function has no return value.

Description

BPEL.BPEL.setVariableData Sets the data selected by "query" in the part (named by "part" argument) of the BPEL variable. If there is no variable with such name or the query contains syntax errors or if its evaluation signals a run time error, the appropriate error is signalled. This procedure may only be used in Virtuoso/PL code invoked from a BPEL process.

Examples

Example24.649.Simple example

declare country any;

...

if (country is null)
  BPEL.BPEL.setVariableData ('res',
        xtree_doc (']]&gt;<destResponse><country>Unknown</country></destResponse><![CDATA['),
        'repl_payload');
 else
  BPEL.BPEL.setVariableData ('res',
        country,
        'repl_payload',
        '/destResponse/country');