CentraSite 10.11 | CentraSite Developer's Guide | Importing Objects Using API | Invoking Importer from Java Program | Importing BPEL Process File
 
Importing BPEL Process File
 
setProjectName
setWarningIfPLTNotFound
The BPEL importer imports objects of a Business Process Execution Language file. In CentraSite there are various specific predefined BPEL-ObjectTypes. A BPEL process flow usually references certain web services. Note that those web services should be registered prior to the BPEL registration otherwise the references to the services cannot be established. The top-level controlling object is a BPELProcess object.
This example demonstrates how to import a BPEL file:
import com.centrasite.jaxr.JAXRAccessor;
import com.centrasite.jaxr.bpel.BPELRegistrator;
 
String dbURL = "http://localhost:53307/CentraSite/CentraSite";
String bpelFile = "c:/temp/MyBPEL.bpel";
String user = ...;
String password = ...;
 
JAXRAccessor jaxr = new JAXRAccessor(dbURL, user, password);
 
try
{
BPELRegistrator br = new BPELRegistrator(bpelFile, jaxr);
br.register();
int warnings = br.getWarningCount();
// are there unreferenced services?
}
catch (Exception e)
{
// handle error
}
finally
{
jaxr.close();
}
The BPELRegistrator class provides the following optional setter methods. If you want to use them, they must be called before calling the register() method: