Beruflich Dokumente
Kultur Dokumente
Lab Guide 3
http://www.oracle-developer-days.com
Copyright 2009 - 2012, Oracle and/or its affiliates. All rights reserved
Oracle BPM Suite 11g: Project Templates and Customization
TABLE OF CONTENTS
http://www.oracle-developer-days.com
Copyright 2009 - 2012, Oracle and/or its affiliates. All rights reserved 2
Oracle BPM Suite 11g: Project Templates and Customization
Workshop Structure
The workshop takes a case study approach. The case study is the sales quote process. The lessons in the
workshop are intended for all audiences: process designers, business analysts, developers, system
integrators, and project managers. There are 4 workshop Labs.
1. Lab1 Understand and Simulate: You will understand the Sales Quote Process provided to you
and perform throughput and cost analysis using Simulation.
2. Lab 2- Run and Monitor In this lab, you will assume the role of business user (process
participant) and use the BPM Workspace to carry out the process related tasks. You will log in to
the BPM Process Workspace as a process owner and monitor the process performance. You will
also learn how to create custom dashboards to monitor business metrics.
3. Lab 3 - Customization: You will assume the role of an Analyst, creating a process from
scratch in BPM Composer. You will also assume the role of a business user (process
participant) and customize the Sales Quote process.
4. Lab 4 Model and Implement: You will assume the role of both Analyst and Developer. As an
Analyst you will use BPM Composer to complete the design of a BPMN process. You will then take
the role of a developer, adding the required implementation detail to the model so that it can be
deployed to the run-time environment.
http://www.oracle-developer-days.com
Copyright 2009 - 2012, Oracle and/or its affiliates. All rights reserved 3
Oracle BPM Suite 11g: Project Templates and Customization
1.1 Introduction
The third exercise introduces you to BPM Composer the web based environment tailored to allow
Business users and Analysts to create and modify processes.
BPM Composer supports two approaches
Top Down where a Process Analyst creates a process for later enhancement in BPM Studio.
Bottom Up where a developer creates a process template for enhancement or modification by a business
user.
1.4 Overview
Process Composer is web-based BPMN tooling that lets business users customize processes. IT can
create a catalog of pre-configured components such as services, tasks, and rules. If the business user
changes are restricted to the components in the catalog, they can deploy from Composer without engaging
IT.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 4
Oracle BPM Suite 11g: Project Templates and Customization
3. Three projects are available at the moment. They are stored in the MDS the assets are available
to both Studio (jDeveloper) and Composer.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 5
Oracle BPM Suite 11g: Project Templates and Customization
4. There are a number of administrative capabilities available within each project. The most important
ones are:
Approval Workflow it is possible to set up a chain of approvers before a project can be accepted
and deployed.
Edit Mode we can set up each user with a different role e.g. edit, view etc.
Shared/Private we can determine which users can share this project
Recent Activity this records who does what with this project
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 6
Oracle BPM Suite 11g: Project Templates and Customization
Gallery an overall view of the catalog of items available to this project (in this case nothing as we
havent created anything yet!)
Snapshots we can create a snapshot of a project at any time to preserve our changes much
like a snapshot in a Virtual Machine.
5. Select New Process indicated by the green cross
8. This will create a basic process for you that you can now add some detail to.
9. Drag the End task across the page to give yourself some space
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 7
Oracle BPM Suite 11g: Project Templates and Customization
10. Look at the available components in the pane on the right. You will see that there are a number of
activities and components available for example, Human Tasks are represented by an
Interactive component to see all those available select More
11. Take a look at the other activities to see what is available to help you create a process.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 8
Oracle BPM Suite 11g: Project Templates and Customization
12. As we have seen, a BPMN diagram represents Roles with Swim Lanes. Move the pointer to the left
swim lane definition (a pencil will appear so that you can edit the definition). Select the pencil.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 9
Oracle BPM Suite 11g: Project Templates and Customization
14. Select a User Task from the Interactive Component Palette and move it across the connector
you will see that the connector is highlighted. If you drop the task here it will be connected by
default.
15. Drag the Task to another swim lane this will create a new swim lane and an Unassigned Role for
you by default. You can give the lane a name (e.g. Sales Rep) by editing the swim lane properties
as before.
16. We will create something more complex later. At this stage we are just looking at the basic
functionality.
17. Save the project.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 10
Oracle BPM Suite 11g: Project Templates and Customization
18. The process is stored in the Meta Data store and is therefore available to a developer to enhance
in BPM Studio (jDeveloper).
19. Close the project by clicking the Globe next to the Projects Link
Select Close Project
Make sure you save it!
20. Sign Out of Composer and start jDeveloper in the Default Role if it is not already running.
21. We want to access the MDS to see our process. Select the BPM MDS Navigator in the pane in the
top left of your screen.
22. If this is not available then you can activate it through view/BPM MDS Navigator
23. You may have to select the refresh icon and select Configure Connection. Select OK
against BPMConnection
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 11
Oracle BPM Suite 11g: Project Templates and Customization
24. The Demo Process is stored in the Public folder. Find the project, right-click and Check Out.
25. Select Yes when you are asked if you want to migrate the process and then OK.
26. The action of checking out the process from the MDS causes Studio to create a new application
and all its components. This can be viewed through the Applications menu.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 12
Oracle BPM Suite 11g: Project Templates and Customization
27. Double Click MyProcess to open it. The process is now ready for editing. Note the ! icons that
accompanies the Human Task. This indicates that the process is incomplete as a developer will
need to add some more implementation detail. You will see more of this in the next LAB.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 13
Oracle BPM Suite 11g: Project Templates and Customization
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 14
Oracle BPM Suite 11g: Project Templates and Customization
3. Select SalesQuoteProcess_rev1.0 from the repository. This will open the process.
4. You will see that the process is locked. There are only certain things we can change. If you click
the process link you will see the process remains locked this is because to change the process
itself we will need to re-deploy it. If you have looked at the process, re-select the Project Home
TAB.
5. Select the Rules link and then Approval Rules.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 15
Oracle BPM Suite 11g: Project Templates and Customization
6. You will see that we can edit the deployed rules. Select Globals and Edit
7. Change the value of preApprovedDiscount to 0.1 (10%). Save and Commit the changes.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 16
Oracle BPM Suite 11g: Project Templates and Customization
12. Logout and in again as jStein the job is in his queue. You have successfully changed a running
process!
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 17
Oracle BPM Suite 11g: Project Templates and Customization
5. If we hadnt unlocked the project we would see that You Are Viewing the project.
6. Snapshot - If you want to try the functionality you could create a snapshot at this point so that the
original is protected. Click the Snapshot expander and then + to create a snapshot. Give it a name,
e.g. Baseline, description before I mess it up !
Create the snapshot.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 18
Oracle BPM Suite 11g: Project Templates and Customization
7. Select the Request Quote process link and the project will open.
8. If you look at the right hand pane you will see that we can switch between BPMN artifacts (you
became familiar with this in the last exercise) and the Business Catalog. If we look at the Business
Catalog we can see that there are some pre-defined human tasks, data and services available to
this process.
Take a look at these and then switch back to the BPMN catalog.
9. Scroll to the bottom of the process.
10. Move the End activity to the right to create some space.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 19
Oracle BPM Suite 11g: Project Templates and Customization
11. Drag a Service Task (select Activity and then More in the Activity pane) onto the line that joins
Save Quote to End.
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 20
Oracle BPM Suite 11g: Project Templates and Customization
13. Now lets add some implementation details. If we click the implementation link a window will open
at the bottom. Click the magnifying glass next to Conversation to see what we might have
available.
14. Select Save Quote. This will add the details to write to a file. In this case the process would now
write to the file twice which is a bit pointless but hopefully you get the idea how easy this is!
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 21
Oracle BPM Suite 11g: Project Templates and Customization
18. At this point we could deploy the project, run it, and see that two files are written at the end. There
is not normally time to do this in the lab.
19. Save the project.
20. Return to the Project Home TAB. You will see that you have modified the project.
21. If you like you can return to the previous version by restoring the snapshot. Have a go!
http://www.oracle-developer-days.com
Copyright 2012, Oracle and/or its affiliates. All rights reserved 22