Book Image

Oracle BPM Suite 11g Developer's cookbook

By : Vivek Acharya
Book Image

Oracle BPM Suite 11g Developer's cookbook

By: Vivek Acharya

Overview of this book

Oracle Business Process Management Suite is a complete set of tools for creating, executing, and optimizing business processes.Oracle BPM Suite 11g offers the flexibility that business demands, hand-in-hand with the power IT requires. The result is an agile platform that brings together your existing applications, enabling you to react quickly to new business requirements.With this cookbook we will develop rich, interactive business processes using the Oracle Business Process Management suite.With Oracle BPM Suite 11g Developer's Cookbook, a common process model based on BPMN is presented to the specific role assigned to readers in each chapter. Explore Oracle BPM 11g with Modelling, Implementation, Simulation, Deployment, Exception Management, BPM and SOA in Concert, Advanced Rules and Human tasks, End User Interaction and Run-time.Oracle BPM Suite 11g Developer's Cookbook will help readers learn BPM 11g through a Real World Sample Process.This book is divided into four sections: the first section, Modeling, lays the foundation and demonstrates how to implement the Modeling of Business processes for a Use Case of a Fictitious Organization which needs BPM to be implemented at their site (with data objects and information handling). In the second section, Implementation, we learn about Process Implementation, Human Interaction, Business Rules, and much more. In the third section, Measuring, we learn about Post Process Development, Performance Analysis and Simulation Models. In the last section, Deployment, Migration and Run-Time, we learn deployment and migration, and Post Deployment Run-Time.
Table of Contents (20 chapters)
Oracle BPM Suite 11g Developer's Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Oracle BPM—Application Development Lifecycle

Organizing processes using swimlanes


Swimlanes are the horizontal lines running across the Process Editor and are used to:

  • Group flow objects based on roles

  • Make process readable.

Swimlanes are created for a process, hence you have to create and define processes first. Tasks inside the swimlane must have application roles associated with them.

How to do it...

In this section, you will create a BPM process, and will create a swimlane, and associate it with an application role.

Create Process

This is done as follows:

  1. 1. Go to the Project navigator and right-click processes (this will open the new gallery).

  2. 2. From Categories, choose BPM Tier.

  3. 3. Select Process to create a process.

  4. 4. Click OK.

  5. 5. The BPMN Process definition dialog opens up.

  6. 6. Enter process name and choose Type:

    • Process name: SalesToContract process:

    • Process Type: Manual Process (no Start and End event)

    • Process Instance initialization: A None start event followed by a user task defined with the initiator pattern will result in Process Instance initialization.

  7. 7. Click Next.

  8. 8. In the Advance tab, go to Select | Inherit Project Default.

  9. 9. Click Finish and Save.

Adding swimlanes

Follow the ensuing steps to create swimlanes:

  1. 1. Click Add Role in the Project Editor, as shown:

  2. 2. It will open a Role properties dialog box.

  3. 3. From the Role properties, choose the Role.

  4. 4. For the first swimlane, choose the SalesRepresentative role:

  5. 5. Repeat the preceding steps to create swimlanes for BusinessAnalyst, Approvers and Contracts roles too.

  6. 6. For SalesRepresentative, BusinessAnalyst, Approvers and Contracts roles, the swimlanes will look like the following:

  7. 7. When you have finished the preceding steps, click Save.

How it works...

The None start event will not trigger the Process Instance. However, it is required while triggering a process instance using the following flow objects:

  • Receive task must have a Create Instance property set to true

    OR

  • User task must be implemented with the initiator pattern

In the SalesToContract process, since the process contains a User task implemented with the initiator pattern, the None start event triggers a process instance.

By default, a default role and a single horizontal swimlane get created in the Project Editor. You can make it work by either renaming the first default swimlane or following the preceding steps.

There's more...

Process Instance creation depends on the type of start event. FusionNX's SalesToContract process is a manual process, as we have chosen while creating the process.

Triggering of a Process Instance: For SalesToContract, we have a User task following the None start event, which has an initiator pattern defined. This will result in initialization of a Process Instance. None start event will not accept input arguments.

Defining the Start and End of a Process

Start events: A Start defines the starting point of a process. Start means initialization of the Process Instance.

End Events: An End event defines the end of a process. When the token reaches the end event, it gets consumed and the instance gets completed. The SalesToContract process will end when the contract is finalized in the Contracts swimlane.

Since the SalesToContract process will end once the contract is finalized, follow the ensuing steps:

  1. 1. Drag the End event to the Contracts swimlane.

  2. 2. Delete the sequence flow from User Task in the SalesRepresentative swimlane to End event by right-clicking the sequence flow, as shown in the following screenshot:

  3. 3. Delete the created User Task, Default, as we will create a User task with initiator pattern to initiate the Process Flow.

  4. 4. When you have finished the preceding steps, click Save.