The process API sample shows how you can interact with processes and staff activities using the public API offered by Business Process Choreographer (BPC).
This sample consists of a set of Java applications and two sample business processes on which the sample applications operate.
The API calls are embedded in Java client applications, each of which shows one or more particular API functions or aspects. These applications are packaged in J2EE client archives and can be started using the launchclient
command offered by WebSphere Process Server. Figure 1 outlines the structure of the sample.
![]() |
Figure 1: Sample Java applications |
There are two helper classes which are called by the sample applications: MyTrace.java
and ApiHelper.java
. MyTrace.java
offers some utility functions to print process data to the SystemOut.log
, while ApiHelper.java
encapsulates the instructions to access the API EJBs, which are required for every sample application.
To demonstrate the capabilities of the process API, the sample provides a long-running business process with a staff activity.
Interface:
![]() |
Figure 2: Order approval interface |
Business process:
![]() |
Figure 3: Order approval process |
The second business process is a simple microflow.
Interface:
![]() |
Figure 4: Dummy interface |
Business process:
![]() |
Figure 5: Dummy process |