Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Oracle BPM Suite 11g Developer's cookbook

You're reading from   Oracle BPM Suite 11g Developer's cookbook Over 80 advanced recipes to develop rich, interactive business processes using the Oracle Business Process Management Suite with this book and ebook

Arrow left icon
Product type Paperback
Published in Apr 2012
Publisher Packt
ISBN-13 9781849684224
Length 512 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Vivek Acharya Vivek Acharya
Author Profile Icon Vivek Acharya
Vivek Acharya
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Oracle BPM Suite 11g Developer's Cookbook
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
1. Preface
1. Process Modeling FREE CHAPTER 2. Process Implementation 3. Process Deployment and Testing 4. Business Rules in the BPM Process 5. Human Workflow in BPM Process 6. Process Simulation 7. Developing UI using Oracle ADF 8. Exception Management 9. BPM and SOA in Concert 10. End User Interaction 11. Manage, Monitor and Administer BPM Process Oracle BPM—Application Development Lifecycle
Approval Management

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

You have been reading a chapter from
Oracle BPM Suite 11g Developer's cookbook
Published in: Apr 2012
Publisher: Packt
ISBN-13: 9781849684224
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime