Sunday, January 6, 2013

Creating your first BPM process

Implementing a BPM process involves many concepts. Here I am posting a step by step approach to create a simple BPM Process

As the first step create a BPM Application





Under the application create a BPM Project





In the next window choose the process type as Manual

The BPM project has two views. One is the regular project view and the second is the BPM view


Create two roles "creator" and "approver" which is required to perform human tasks


Using the Identify look up window associate the users to the above roles




Open the process and right click on the role and change the role to Creator



Below the first role, right click and add another role as shown below


Now the window will look like

Now drag the stop activity to the Approver line and add another human task from the  Component Palete


In the BPM view , right click on the business object and create a module called Order Module



Now create a business object under this module


Select the module we created in the above step and click OK



In the business object window add three attributes as shown below






Now select the process again and go to the structure window


Right click on the ProcessData Object and create a new process data object of the type defined in the business object which we created in the above step


Now right click on the CreateOrder activity and goto the implementation tab.

Create a new human task as shown below

In the parameter section click on the + button and drag and drop the process data object we created in the above step. Make the parameter editable

Say OK and in the Data association add the data mapping as shown below


Similarly for the ApproveOrder Activity add human task 

Now the process appears without any warning


For the two human task we created in the above step generate a UI using the CrateForm Option



Give the UI suffix for the project name

This will create a form as shown below. This form creation process will take few minutes to complete


Similary for the approve task as well create a UI



Now the project is ready to deploy. Goto Project view and deploy

Select the UI projects in the subsequent screen

Complete the deployment

Once deployment is completed log on to the bpm workspace as the Creator role. Here weblogic user having the creator role



The process will be displaced in the Applications list


Click on the process link and it will prompt with an order creation UI. The Creator can click on the submit button which will create the instance of the order and that will be assigned to the Approver to approve or reject




Now logout and login as Approver. Here admin user has Approver Role



Once logged in the Approver can see the pending task to approve or reject the order



Once the order is approved or rejected that item will get removed from the approver's task list

This completes the BPM sample execution


No comments:

Post a Comment