A business process is a set of operations or tasks executed in a specific order. The business processes are used for achieving a business goal. In WebSphere integration developer, business processes are the primary ways to integrate enterprise services. In WID the business processes are created using business process editor. The business processes can be Mircroflow or Long running in WebSphere Integration Developer. Microflow means the process contains only one transaction. Long running processes can have more than one transaction and will be running over an extended period of time.

To create a business process switch to Business integration perspective and right click on Business Logic -> Processes in your business integration module. From the context menu appears select New -> Business Process. The new business process wizard opens. Enter the directory where you want to store the process files and enter a name for your business process.

Click on next. In this step you need to select an interface, we can have a new interface or we can select an existing interface. I would prefer selecting an existing interface always. Click on next. In this step, WID would ask whether we need to disable WebSphere Process Server BPEL extensions or not. If you disable the BPEL extensions, the process can only be a microflow. No long running processes can be created once we disabled the BPEL extensions. Click on Finish button. The business process will be opened for designing in process editor.

The business process editor has different areas like palate, canvas, tray, properties editor etc. Palate is the place where WID stores the objects for designing the business process. The design area of the business process editor is the canvas.

Here I am designing a simple process which prints Hello name to the console. My process contains only a Receive, snippet (used for placing custom java code) and a reply activity. After designing the process my process looks like the one shown in the figure.

I have the following code in my snippet.

String name = Request.getString("name");

System.out.println("Hello "+name);

Now open the assembly editor and drag and drop your business process to the assembly diagram and save the assembly diagram.

To test your business process, we can use the WID Test Client or Business Process Choreographer explorer. Start your WebSphere Process Server and add your project to the server. (Note: A business process can only be deployed in WPS not in ESB server).

To test with WID test client, right click on MyProcess in assembly diagram and click on Test Component. The WID test client opens. Enter your request parameters and click on Continue.

It would ask in which server we need to test our module. Select WPS and click on OK. If the security is enabled in the server it would ask for the username and password to connect to the server also.

Did you like this? If so, please
tell a friend
about it, and subscribe to the blog RSS feed.

Share/Save/Bookmark

If you enjoyed this post, make sure you subscribe to my RSS feed!