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

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.