www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

Virtuoso Functions Guide

Administration
Aggregate Functions
Array Manipulation
BPEL APIs
bpel.bpel.compile_sc...
bpel.bpel.copy_scrip...
bpel.bpel.getvariabl...
bpel.bpel.get_partne...
bpel.bpel.import_scr...
bpel.bpel.instance_d...
bpel.bpel.plink_get_...
bpel.bpel.plink_set_...
bpel.bpel.purge_inst...
bpel.bpel.script_del...
bpel.bpel.script_obs...
bpel.bpel.script_sou...
bpel.bpel.script_upl...
bpel.bpel.setvariabl...
bpel.bpel.wsdl_uploa...
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Phrases
RDF data
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
VAD
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web & Internet
XML
XPATH & XQUERY

Functions Index

BPEL.BPEL.setVariableData

sets BPEL variable data within code invoked from <bpelv:exec binding="SQL"> activity
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
Simple example
declare country any;

...

if (country is null)
  BPEL.BPEL.setVariableData ('res',
	xtree_doc ('Unknown'),
	'repl_payload');
 else
  BPEL.BPEL.setVariableData ('res',
	country,
	'repl_payload',
	'/destResponse/country');