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

Changing the value of Data objects in your process


You have created a couple of Process Data Objects while modeling the SalesToContract process. However, you have never initialized those Data objects.

The following Data objects were created during modeling:

  • BusinessAnalystOutcome (to hold the outcome of the Business Analyst Review User task)

  • approveDealOutcome (to hold the outcome of the Approve Deal User task)

  • approveTermsOutcome (To hold the outcome of the Approve Terms User task)

Let's try to change Process Data object values and initialize them in the process.

How to do it...

  1. 1. Go to Component Palette | BPM | Default Activity and select the Script task activity.

  2. 2. You will use this activity to initialize the Quote Data objects.

  3. 3. In the Sales Representative swimlane, click where you want to position the Script task activity. Click between the Start event and the Enter Quote User task, to position Script Task.

  4. 4. Once the Script task| Properties dialog opens, enter the following information in the properties dialog:

    • In the Basic tab, enter Name = Initialize Quote

    • In the Implementation tab

    • Chose Implementation Type = Script task

    • Check Use Association

    • Click the Edit button to the right of the Use Associations checkbox

  5. 5. The Data Associations editing dialog will open.

  6. 6. On the right side of the dialog box, list the Data objects created so far in the process.

  7. 7. Drag the BusinessAnalystReviewRequired process Data objects to the Data Associations editor. This will open a blank box with an Expression Builder, as shown in the following screenshot.

  8. 8. Click on Expression Builder to assign values to this Data object, say BusinessAnalystReviewRequired Data object:

  9. 9. In the Expression Builder dialog, choose XPath Exp for Mode:

  10. 10. In the Expression editor, enter false() to assign false() as initial value to the BusinessAnalystReviewRequire Data object.

  11. 11. Click OK, and when you have finished the preceding steps, click Save.

How it works...

Script Tasks are used to change Process Data objects values. So when the process token reaches the script task, it will initialize those Data objects.

The script task is used to:

  • Change values of Data objects within your process

  • Change the values of Data objects outside of another flow object

  • Set initial values of Data objects at the beginning of a process

Project Data objects are Data objects that you define in a project. As with other flow objects that accept data associations, you can use expressions to change the values of Data objects.

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