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—Parallel gateways


Task # 3, Quote Approval has 2 parallel tasks:

  • Deal Step Approval

  • Term Step Approval

They need to be performed in parallel by the Approvers and Contracts roles.

How to do it...

I. Create a Parallel gateway

  1. 1. Move to Component Palette | BPM | Activities.

  2. 2. Click Gateways, and select Parallel Gateway.

  3. 3. Drag it to the Project Editor, in the Approvers swimlane.

  4. 4. Enter basic information into the properties dialog of the gateway, such as:

    • Name: Approvals

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

II. Create a User task

Note

You need to create two User tasks in the Process Model, which will perform the Approval deal and Approval terms tasks, by the Approvers and Contracts roles, respectively.

  1. 1. Go to Component Palette | BPM | Activities.

  2. 2. Click User task in interactive activities.

  3. 3. Click in the Approvers swimlane, where you want to position this User task.

  4. 4. Enter the following details in the Properties dialog of the User task:

    • In the Base tab, enter Name as Approve Deal

    • In the Implementation tab, leave the default, as we will implement it in the implementation phase of the development cycle

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

  6. 6. Go to Component Palette | BPM | Activities.

  7. 7. Click User task in interactive activities.

  8. 8. Click on the Approvers swimlane, at the point where you want to position this User task.

  9. 9. Enter the following details in the Properties dialog of the User task:

    • In the Base tab, enter Name as Approve Terms

    • In the Implementation tab, leave the default, as we will implement it in the implementation phase of the development cycle.

  10. 10. When you have finished, click Save.

III. Create sequence flows

Create unconditional sequence flows from the Approvals Parallel gateway to Approve Deal and Approve Terms User tasks.

  1. 1. Click on the sequence flow on top of the Process Editor.

  2. 2. Create a Sequence flow (Unconditional) from the Approvals Parallel gateway in the Approvers swimlane to the Approve Deal User task.

  3. 3. Similarly, create a Sequence flow (Unconditional) from the Approvals Parallel gateway in the Approvers swimlane to the Approve Terms User task.

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

IV. Create Process Data objects

Create Process Data objects to store the outcome of the Approve Deal and Approve Terms User tasks.

  1. 1. Click the process name SalesToContract in the Project navigator.

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

  3. 3. In the Structure panel, on the lower-left side, right-click the Process Data object, and click New, to create a new Data object.

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

    • Data object name: approveDealOutcome

    • Type: String

    • Enable Auto Initialize

  5. 5. Enter Following Details for the Process data object :

    • Data Object name : approveTermsOutcome

    • Type: String

    • Enable Auto Initialize

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

How it works...

The Parallel Gateway guides the process token to perform two or more tasks simultaneously.

The Parallel Gateway:

  • Splits your process into two or more paths when you want your Process Flow to follow all paths simultaneously

  • When a token reaches a parallel gateway, the parallel gateway creates a token for each outgoing sequence flow