To create the HelloWorld module, complete the following steps:
In the Business Integration view, click Click to add a business integration project under Projects.
(Alternatively: from the menu bar, select File > New > Module).
The New Business Integration Project window opens. Make sure Create a module is selected.
Click Next.
The New Module window opens.
In the Module Name field, enter HelloWorld.
Click Finish. The module will be created. Wait until the automatic build process has finished.
To create the Hello World business process, complete the following steps:
Switch to the Business Integration view.
In the navigation tree, expand HelloWorld and right-click Integration Logic.
From the pop-up menu, select New > Business Process.
The New Business Process window opens.
Make sure New default Business Process is selected.
In the Name field, enter HelloWorldProcess.
In the Folder field, enter bpc/samples.
Accept the default value for the namespace.
Click Next.
In the Select a New Business Process Type panel, select Microflow.
Click Next.
In the Select an Interface panel, select Generate a new Interface. This generates a predefined process interface, which is ok for this first sample; usually you will first define the process interface and subsequently create the process using that interface.
Click Finish.
Edit HelloWorldProcess
Add a snippet activity
Click the Snippet icon on the palette.
To find the snippet icon, it may be necessary to expand the Palette by clicking on Basic Actions. The list of activities will be displayed.
Click the connection between Receive and Reply
The Snippet activity is added.
Implement the snippet activity
In the business process editor, click the Snippet activity.
In the properties view, click the Details tab.
Select Java as implementation type.
If the Question dialog appears, click Yes.
In the text area, enter the following Java code:
//print the greeting:
System.out.println("Hello, " + input1);
//assign a value to the Output variable:
input1 = "Hello World!";
To complete the implementation of the module, follow these steps:
Switch to the tab HelloWorld - Assembly Diagram.
Note: If the Assembly Diagram of HelloWorld is not opened by default, double-click on HelloWorld > Assembly Diagram in the Business Integration view.
Install hello world process to the test environment
In the Servers view, click the Servers tab.
Ensure that the status of WebSphere Process Server v7.0 is Started. If the status is Stopped or not displayed, right-click WebSphere Process Server v7.0 and select Start.
From the table, right-click WebSphere Process Server v7.0.
From the pop-up menu, select Add and Remove Projects.
The Add and Remove Projects window opens.
In the Available projects list, select the HelloWorldApp.
Click Add. The HelloWorldApp project is moved to the Configured projects list.
Click Finish. Wait until the automatic publishing process has finished.
Run hello world process using the BPC Explorer
Refer to the Run the Sample section on how to run the hello world process in the integrated test environment.
With WebSphere Integration Developer 7.0.0.1 and higher, you can configure the business object runtime framework. The version 7 framework
uses partial parsing in a lazy manner which leads to performance improvements in certain scenarios.
Note: This new mode has the status "Technical preview" and is not recommended for production purposes yet.
To enable the new version 7 business object runtime framework, follow these steps:
Switch to the Business Integration view.
In the navigation tree, right-click HelloWorld module.
From the pop-up menu, select Properties.
In the Properties window, expand Business Integration and click Business Object Runtime Framework.
If you want to run your business process on a WebSphere Process Server, you have to create an enterprise application. Then, you can install this enterprise application to your WebSphere Process Server.
To create an enterprise application for the Hello World business process, follow these steps:
Switch to the Business Integration view.
In the navigation tree, right-click HelloWorld module.
From the pop-up menu, select Export.
In the Export window, expand Business Integration and click Integration modules and libraries.