![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This section describes how to use the BPEL Export tool in BEA Workspace Studio, to export BPEL 1.1 and 2.0 compliant code from a JPD file.
Provides information on the export tool that will enable you to use is more effectively and efficiently.
You can use the BPEL Export tool to export the semantics of a JPD file into BPEL where it can be used in a BPEL design environment. BPEL code that is exported using the BPEL Export tool is BPEL 1.1 and 2.0 compliant and can be used in design environments compliant with BPEL 1.1 and 2.0. While the main orchestration logic of the JPD is exported to BPEL, it is not expected that the exported BPEL will be immediately executable in the target environment.
This is due to the fact that some executable call-outs from the JPDs will be opaque to the exported BPEL code. These executable units generally include controls, code written in perform nodes, and XQuery transformations. The BPEL Export tool copies the Java code and the XQuery code as extension nodes in BPEL. As a result, you must re-implement the logic in the target BPEL environment, as JPD provides a superset of the functionality provided by BPEL.
One Web Service Definition Language (WSDL) file defines the WSDL interface of the business process and defines a partner-link type for the interface. The other file defines the WSDL interface and partner-link types of the partners. Partners are the artifacts interacting with the business process. These artifacts are either consumers or providers of services to the business process.
These WSDL files are not the same as the WSDL that BEA Workspace studio would generate for the corresponding JPD or JCX files. The differences are described in detail in Known Limitations and Issues on page 2-7.
The relevant XSD schema files (which must be located in a schema folder in the WebLogic Integration application) are needed in the target environment, along with the WSDL and BPEL files.
Process.java
Export.%workspace%/.metadata
where workspace
refers to where the WebLogic Process application resides.
This section provides some notes on the export process and details some known limitations of the BPEL Export tool.
Notes: | The section details information that you should remember when using the BPEL Export tool. |
int
, short
, long
, byte
, float
, boolean
, double
, String
, java.util.Date
, and java.util.Calendar
are converted to the corresponding schema built-in types. XMLBean types are converted to the corresponding XML Schema type. A wrapper element type is introduced for complex types, BPEL variables cannot have a complex type as their type. Any other types (including temporary transform variables) are converted to an element type with no type attribute.parameters
, since a method has a single return type with no name.xqueryCode
element.send
or receive
messages are exported to assign activities before or after the corresponding invoke
, reply
, or receive
activities.Table 2-1 details how various JPD file attributes, nodes, and so on are converted to a BPEL file.
jpd:initialValue
.xsd:include
element. If the types used are in a WSDL file, it is exported using wsdl:import
.ArrayList
or another Collection class’s add()
method, a non-standard JPD namespace attribute jpd:appendToCollection
is generated with its value set to true
. MFL types are not supported for export. Creating an empty element type for <type>
.afterExecute=resume
is not supported for the following paths:freezeOnFailure=true
, onSyncFailure
, and persistent
are not supported.executeOnRollback
is not supported for OnException
path.jpd:transaction
set to true
.<jpd:xquerycode>
node as a BPEL extension.<jpd:javacode>
node as a BPEL extension.<jpd:javacode>
extension..java
file names that contain special character like $
are exported to.
bpel
files, these names are used as is in the “name” attribute of “variable” and “variable” attribute of “to”. Since BPEL schema defines these attributes as NCName type, these special characters become invalid in the generated.
bpel
file. However, this limitation is no longer valid for the $
character. For any other special character (that is not valid NCName or QName type), althought the .bpel file is generated, schema validation of the file fails.
Workaround: The generated .bpel
file needs to be manually modified by using valid characters.
![]() ![]() ![]() |