Creating a process

A business process is a series of activities invoked in a specific order to achieve a business goal. The Process Choreographer in WebSphere(R) Application Server performs the process. The procedure given here is one way of creating a business process in WebSphere Studio Application Developer. For more information on how to create business processes, refer to the Application Developer help.

To create a process, do the following in WebSphere Studio Application Developer:
  1. From the File menu, select File > New > Service Project.
  2. In the New Project window that opens, type the name of your service project and click Finish.
  3. Create a package under the project to contain the activities you'll use in the process.
  4. Create activities for your business process. The implementation class of the activities should extend com.ibm.btt.server.flow.al.base.BaseSnippet, which provides the API to access the CHA, formatters, and services. The process must use the CHA to get data.
    Note: If you are creating a business process to handle user logon, extend the com.ibm.btt.server.flow.al.base.BaseLogonSnippet class instead of the com.ibm.btt.server.flow.al.base.BaseSnippet class.
  5. Create the business process:
    1. From the File menu, select File > New > Business Process to create a business process for your service project.
    2. In the New Business Process window that opens, provide the package and file name information for the process. Click Finish. After the wizard creates the process, Application Developer displays the process in the process editor.
      Application Developer displays the process in the process editor
    3. Add activities for the process.
      • If you want to add the Java(TM) Snippet activities that you created in step 1 to the process, simply create new activities of the Java Snippet type with the identical names of the those you created in step 1. You do not need to define the implementation information for the activities because the Process Code Generation Tool will add the implementation information for the activities later.
      • If you want to add activities of the Invoke type to the process, you have to define all information about the activities here by yourself

      For more information on creating a process in the process editor, see the Application Developer help. Note that the toolkit processes do not support parallel activities.

  6. Customize the BPEL file with the Business Process BTT Wizard.
  7. Create the files for deploying the process:
    1. Right-click the process file (for example, BTTLogonProcess.bpel) and select Enterprise Services > Generate Deploy Code.
    2. Click Finish. This creates the EAR project for the process. But at this time, there are errors in this EAR project.
  8. Add the following JAR files to the Java Build Path and JAR dependencies:
    • bttbase.jar
    • bttsvrflow.jar
    • bttfmt.jar
    • bttsvcinfra.jar
  9. Add other necessary JAR files to the Java Build Path. Re-build the project.
  10. Deploy the process to a test server in Application Developer. You can select EJB or SOAP/APACHE when doing the deployment.
  11. Select Enterprise Services > Generate Service Proxy so that Application Developer generates the code to invoke the business process. Use the service proxy to test the business process.
    Note: You can also use your invokers or Struts Actions to test the business process.

Once tested, you can install it on WebSphere Business Integration Server Foundation.

Related tasks
Installing the process on WebSphere Business Integration Server Foundation
Related information
Startup beans
BTTStartup component
BP Extension Tool