bea.com | products | dev2dev | support | askBEA |
![]() |
![]() |
|
![]() |
e-docs > WebLogic Platform > WebLogic Integration > BPM Topics > Programming BPM Plug-Ins > BPM Plug-In Sample |
Programming BPM Plug-Ins
|
BPM Plug-In Sample
This section describes the BPM plug-in sample in detail. It includes the following sections:
Plug-In Sample Contents
The BPM plug-in sample provides a set of plug-in classes that represent common plug-in scenarios, and is provided with the software in the SAMPLES_HOME/integration/samples/bpm_api/plugin/src/com/bea/wlpi/tour/po/plugin directory. The sample includes two workflow templates, Plug-in Order Processing and Plug-in Order Fulfillment. Excerpts from the plug-in sample are referenced throughout this document.
Note: The plug-in sample is loosely based on a generic Web-based sales order scenario that is described in detail in Introduction to WebLogic Integration and the Example Workflows in Learning to Use BPM with WebLogic Integration.
The following table describes the plug-in sample, shown in the figure Plug-In Sample Workflow Templates, listing the workflow component and the associated example source files located in the SAMPLES_HOME/integration/samples/bpm_api/plugin/src/com/bea/wlpi/tour/po/plugin directory. Workflow components 1 through 3 are provided as part of the Plug-in Order Processing workflow template. Workflow components 4 and 5 are provided as part of the Plug-in Order Fulfillment workflow template.
The following table defines the additional source files that exist in the SAMPLES_HOME/integration/samples/bpm_api/plugin/src/com/bea/wlpi/tour/po/plugin directory.
Using the Plug-In Sample
The plug-in sample is ready to use out-of-the-box. For your convenience, the plug-in sample JAR, WAR, and deployment descriptor files are deployed to the appropriate directories when you install WebLogic Integration.
The following sections describe how to import and run the sample plug-in.
Importing the Plug-In Sample
To import the plug-in sample, use the Studio import package tool. The Studio import package tool enables you to import a workflow package, in the form of a JAR file, that can contain one or more of the following objects: templates, template definitions, event keys, and business operations.
To import the plug-in sample package:
For more information about importing and exporting workflow packages, see Importing and Exporting Workflow Packages in Using the WebLogic Integration Studio.
Running the Plug-In Sample
The plug-in sample can be run by triggering the Plug-in Order Processing workflow template using a plug-in-defined event. For your convenience, a generic driver file, StartOrderDriver.java, is provided in the SAMPLES_HOME/integration/samples/bpm_api/plugin/src/com/bea/wlpi/tour/po/plugin directory. This driver generates a plug-in defined event that supplies the Plugin Order Processing workflow with the customer order information. This information is stored in the Plugin Order Processing workflow variables and is used to process the order.
Note: The Worklist client application is being deprecated as of this release of WebLogic Integration. For information about the features that are replacing it, see the BEA WebLogic Integration Release Notes.
To run the example:
The admin user has been defined as a member of all of the roles used in the sample workflows. For more information, see "Logging On to the Worklist Application" in Executing and Monitoring the Example Workflows in Learning to Use BPM with WebLogic Integration.
You will need to interact with the plug-in sample using the Worklist tool.
$SAMPLES_HOME/setenv.sh
CLASSPATH=
$WL_HOME/lib/weblogic.jar:$SAMPLES_HOME/integration/samples/lib/wlpi-ejb.jar:
$SAMPLES_HOME/integration/samples/lib/sampleplugin-ejb.jar
$JAVA_HOME/bin/java -classpath "$CLASSPATH"
com.bea.wlpi.tour.po.plugin.StartOrderDriver
t3://localhost:7001 joe password
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |