# 22. Virtuoso Functions Guide - BPEL.BPEL.compile_script

Chapter Contents | Prev | Next
Keyword Search:
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
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY
Functions Index

## BPEL.BPEL.compile_script

Compile a BPEL script source
BPEL.BPEL.compile_script (in scp_id int, in vdir varchar (default null), in opts any (default null), in no_check int (default 0));
Parameters
scp_id – int the BPEL process identifier to be compiled
vdir – varchar virtual directory to be created for this process (absolute path)
opts – any options to the virtual directory if specified
no_check – int flag to check or not partner links, bu default before compilation function will check if every partner link have corresponding WSDL uploaded
Return Types

this function has no return value

Description

BPEL.BPEL.compile_script is used to compile BPEL script identified by scp_id and link to it all WSDL definitions have been associated to it.

Examples
Simple example

The following will compile a BPEL script with identifier equals to 1

                SQL> create procedure echo_deploy ()
                {
                  declare scp int;
                  BPEL.BPEL.import_script ('file:/echo/bpel.xml', 'Echo', scp);
                  BPEL.BPEL.compile_script (scp, '/Echo');
                };
                Done. -- 0 msec.
    	    SQL> echo_deploy ();
                Done. -- 2303 msec.