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

Controlling Process Flow—Defining exclusive gateways


You will be modeling Task # 2 (Business Analyst Review), which is performed by the Business Analyst role, in the Business Analyst swimlane.

Getting ready

The Business Analyst will review the Sales quote and he/she can either APPROVE or REJECT the Quote.

If Approved: The process continues forward.

Else: On Rejection, the process reaches the Sales Representative again, to refine and resubmit the quote.

How to do it...

Create User Task

Perform the following steps to create a User task:

  1. 1. Select Project navigator, click Process | Project Editor.

  2. 2. In the Project Editor, at the the BusinessAnalyst swimlane, create a User task, which is performed by the Business Analyst to review the quotation.

  3. 3. Select Component Palette | BPM | Activities and select User task.

  4. 4. Drag User task from Interactive Activities and position it in the swimlane.

  5. 5. Name the User task Business Analyst Review.

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

Create a Condition Switch

Before the Business Analyst performs the review on the sales quote and either rejects or approves the quote, you will check if a Business Analyst Review is required or not.

If required: Proceed to the Business Analyst Review User task.

Else: Proceed to Approvers review.

  1. 1. Select Component Palette | BPM | Gateways.

  2. 2. Select Exclusive Gateway, click on the Business Analyst swimlane, and position it where you want to create the Condition switches.

  3. 3. It will open a Properties dialog box. Enter basic information:

    Name: Is Business Analyst Review required? This will get displayed on the Process editor on the Exclusive Gateway.

  4. 4. Create an unconditional sequence flow from Enter Quote (Initiator User task) to the Is Business Analyst Review required? Exclusive Gateway.

  5. 5. When finished, click Save.

Create Process Data Object

Processes access and store information, and BPM supports data structures to keep track of this information. These data structures are—Process Data objects, Project Data objects, Arguments, and Subprocess Data objects.

Process Data objects—They store information related to each process instance you create. The value of these data objects is different for every instance in the process. However, the structure of the data object is the same for all process instances. When you define a process, you must define the data object to store information. You must also define in which part of the process you assign a value to these data objects. The value of data objects may come from user input, from external systems, or might be calculated based on other process data objects. When you create an instance, the Process Engine assigns Null as the default value for all the process data objects defined for that process. Later on, the activities in the process assign values to these variables.

Project Data objects—The processes in a BPM project often have a set of data they share. The value of this data is different for every instance in each of those processes; they only share the necessity to keep track of that data. Project data objects allow you to ensure that all the processes in a certain project keep track of a set of data. Then each process has to assign and update the value of this data.

You can create project data objects as follows:

  1. 1. In the Project navigator, click on the process name, SalesToContract.

  2. 2. You can see a Structure panel open at the lower-left corner of the JDeveloper screen.

  3. 3. Right-click Process Data Objects. Click New to create a Data object.

  4. 4. Enter the following details for the Process data object:

    • Data Object name: BusinessAnalystReviewRequire

    • Type: Boolean (Bool)

  5. 5. Create a conditional sequence flow from Exclusive Gateway to Business Analyst Review User task.

  6. 6. This will open sequence a Flow properties dialog.

  7. 7. In the Description tab, enter Name of the Sequence flow as Yes.

  8. 8. In the Properties tab, click on Expression Builder and set the value of the Process Data object as BusinessAnalystReviewRequire == true.

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

How it works...

This User task, Business Analyst Review, will be performed by the Business Analyst to review the quotation. However, even before a review is carried out by the Business Analyst, you will check if a review is required or not. When the token reaches Exclusive Gateways, it will determine what path the process token will take.