CentraSite Documentation : CentraSite Administrator’s Guide : Importing Objects Using the API : Invoking an Importer from a Java Program : Importing a BPEL Process File
Importing a 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.
The following 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.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback