BEA Logo BEA Collaborate Release 2.0

  BEA Home  |  Events  |  Solutions  |  Partners  |  Products  |  Services  |  Download  |  Developer Center  |  WebSUPPORT

 

   Collaborate Documentation   |   cXML   |   Previous Topic   |   Next Topic   |   Contents   |   Index

Using Workflows with cXML

 

WebLogic Collaborate allows you to use WebLogic Process Integrator workflows to exchange normal business messages. While there is no cXML plug-in for WebLogic Process Integrator, you can nonetheless integrate cXML business documents through the use of business operations.

The following sections describe how to exchange cXML business messages in WebLogic Collaborate, using WebLogic Process Integrator workflows and the cXML API-driven interface:

For more information about developing workflows using WebLogic Process Integrator, see Creating Workflows for BEA WebLogic Collaborate.

 


Including cXML in Workflows

Workflows intended to use cXML must make use of an externally-created business operation class to encapsulate the cXML API used by WebLogic Collaborate.

The result of this development process is a workflow that, when executed, allows the methods defined in the wrapper class to be invoked. These methods perform the defined cXML business operation.

Workflow Integration Tasks

Using cXML with WebLogic Process Integrator workflows requires a specific combination of administrative, design, and programming tasks.

Programming Task

Externally created business operation classes use the cXML API to perform a specific business operation. For example, you might create a class that implements the PunchoutSetupRequest functionality for a workflow. For more information, see the cXML User's Guide at:

http://www.cxml.org

If you plan to pass parameters using the workflow, you must create a class that can accept such parameters. You can then pass parameters into the class using workflow variables. These parameters can then be used to set up your cXML output.

To configure the class, its methods, and any parameters that you have defined, open the WebLogic Process Integrator Studio and choose Business Operations from the Configure menu. For more information, see Using the BEA WebLogic Process Integrator Studio.

Within WebLogic Process Integrator, you can then invoke the business operation used to invoke the cXML process operation as a workflow action. When you add an action, select Perform Business Operations from the Integration Actions folder of the Add Actions dialog box. This option allows you to map workflow variables to the method parameters used by the cXML wrapper class. For more information, see Using the BEA WebLogic Process Integrator Studio.

Administrative Tasks

Before you start using cXML with WebLogic Process Integrator workflows, you must complete the following administrative tasks. These tasks are in addition to those that you normally perform while using WebLogic Process Integrator to generate workflows for use with WebLogic Collaborate:

Design Task

In addition to the design work required to create a WebLogic Process Integrator workflow for use with WebLogic Collaborate, you must do some extra design work if you want to use cXML in your workflow. Specifically, you must design your workflow to use a Business Operation to execute all cXML functionality. For each cXML function you need to execute, you must create a separate Business Operation.

 


Designing Workflows for Exchanging Business Messages

To use workflows to exchange business messages in WebLogic Collaborate, design workflow template definitions by using the WebLogic Process Integrator Studio. For information about creating WebLogic Collaborate workflows, see Using the BEA WebLogic Process Integrator Studio and Creating Workflows for BEA WebLogic Collaborate.

As discussed previously, use of cXML in WebLogic Process Integrator workflows requires the creation of business operation classes to implement the cXML API. In the previous section, we discussed the creation of these business operation classes. In this section, we will discuss the use of business operation classes to manipulate cXML messages within WLPI.

 


Working with Business Messages

You use WebLogic Process Integrator in conjunction with WebLogic Collaborate to enable trading partners to exchange business messages. cXML is one method by which this task may be performed.

The following sections describe how to work with cXML business messages exchanged using workflows:

About cXML Business Messages

A cXML business message is the basic unit of communication exchanged between trading partners in a conversation. A cXML business message is a multi part MIME message that consists of:

As with other forms of business messages, you can access the contents programmatically, as described in Creating Workflows for BEA WebLogic Collaborate. Unlike with XOCP and RosettaNet business messages, however, the WebLogic Collaborate implementation of cXML does not allow you to use any other method to access the contents of a business message when using cXML.

Prerequisite Tasks for Exchanging Business Messages

Before you can send and receive business messages, you must define the following actions in the workflow template using the WebLogic Process Integrator Studio:

For more information, see Creating Workflows for BEA WebLogic Collaborate.

 

back to top previous page