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—Implementing Exclusive Gateways


The Business Analyst will either reject the quote or approve it, to switch the token flow, based on Business Analyst Review User task.

How to do it...

Perform the following steps to implement Exclusive gateways:

  1. 1. Create an Exclusive Gateway for the condition switch.

  2. 2. Create an Exclusive Gateway to check on the Business Analyst Approval Outcome.

  3. 3. Select Component Palette | BPM | Gateways and select Exclusive Gateway.

  4. 4. Next, click on the BusinessAnalyst swimlane and position it where you want to create the condition switches. In this case, place it after the Review task (User task).

  5. 5. It will open a Properties dialog box. Enter basic information, such as:

    • Name:Business Analyst Outcome

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

Create a Process Data object to hold outcome of the Business Analyst Review User task as follows:

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

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

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

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

    • Data object name: BusinessAnalystOutcome

    • Type: String

    • Enable Auto Initialise.

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

  6. 6. Create Sequence flows by implementing the outcome scenario:

    If outcome of the Business Analyst Review is REJECT: Then, send a quote to the Sales Representative.

    Else: Send it to Approvers for approvals.

  7. 7. Case: REJECT

    • Create a Conditional Sequence flow from Business Analyst Outcome Gateway to User Task (Enter Quote)

    • Click on sequence flow to open the Properties dialog

    • Enter basic information as follows:

    • In the Description tab ,enter Name: Business Analyst Rejected

    • In the Properties tab:

    • Select Type as Condition (to implement conditional sequence flow)

    • In the Expression section, click Expression Builder

    • In Expression Builder, select Mode as Simple expression

    • From the Variables section, chose the Data object BusinessAnalystOutcome and set value as: BusinessAnalystOutcome=="REJECT"

    • Click OK

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

  8. 8. Case: APPROVE

    • Create an unconditional sequence flow from Gateway (Business Analyst Outcome )to Approvals(Parallel gateway), in the Approvers swimlane

    • Enter basic information such as:

    • In the Description tab, enter Name: Business Analyst Approved

    • In the Properties tab, select Unconditional as Type(to implement unconditional sequence flow)

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

How it works...

Exclusive gateways used for the conditional switch discussed in the preceding text are flow objects that define the flow of process. Gateways define what path the process token will take. Exclusive gateways have conditional outgoing sequence flows. You can build expressions to determine if your process continues down a conditional sequence flow.

To implement Conditional Switch:

If: Business Analyst Review is required = Yes, then proceed to the Business Analyst Review User task.

Else: Proceed to Approvers Review.

You will create a Process Data Object to store values, as the evaluation is determined by the expression defined for the outgoing conditional sequence flow. If this evaluates to true, then the Process Flow proceeds down the Yes path (towards the Business Analyst Review User task). If it evaluates to false, then the Process Flow proceeds down the path of the default outgoing sequence flow. The condition in the sequence flow will be based on values of Process Data object BusinessAnalystReviewRequired.

If the Process Data object BusinessAnalystReviewRequired = True, then choose the sequence flow Yes

Else: Choose the sequence flow No

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