Oracle BPM Suite 11gR1: Creating a BPM Application

Learn from the experts – teach yourself Oracle BPM Suite 11g with an accelerated and hands-on learning path brought to you by Oracle BPM Suite Product Management team members with this book and eBook

Getting Started with Oracle BPM Suite 11gR1 – A Hands-On Tutorial

Getting Started with Oracle BPM Suite 11gR1 – A Hands-On Tutorial

Learn from the experts – teach yourself Oracle BPM Suite 11g with an accelerated and hands-on learning path brought to you by Oracle BPM Suite Product Management team members

  • Offers an accelerated learning path for the much-anticipated Oracle BPM Suite 11g release
  • Set the stage for your BPM learning experience with a discussion into the evolution of BPM, and a comprehensive overview of the Oracle BPM Suite 11g Product Architecture
  • Discover BPMN 2.0 modeling, simulation, and implementation
  • Understand how Oracle uses standards like Services Component Architecture (SCA) to simplify the process of application development
  • Describes how Oracle has unified services and events into one platform
  • Built around an iterative tutorial, using a real-life scenario to illustrate all the key features
  • Full of illustrations, diagrams, and tips for developing SOA applications faster, with clear step-by-step instructions and practical examples
  • Written by Oracle BPM Suite Product Management team members

 

Read more about this book

(For more resources on Oracle, see here.)

The BPM Application consists of a set of related business processes and associated shared artifacts such as Process Participants and Organization models, User Interfaces, Services, and Data. The process-related artifacts such as Services and Data are stored in the Business Catalog. The Business Catalog facilitates collaboration between the various stakeholders involved in the development of the business process. It provides a mechanism for Process Developer (IT) to provide building blocks that can in turn be used by the process analyst in implementing the business process.

Start BPM Studio using Start | Programs | Oracle Fusion Middleware 11.1.1.3 | Oracle JDeveloper 11.1.1.3. BPM Studio supports two roles or modes of process development. The BPM Role is recommended for Process Analysts and provides a business perspective with focus on business process modeling. The Default Role is recommended for Process Developers for refinement of business process models and generation of implementation artifacts to complete the BPM Application for deployment and execution.

Tutorial: Creating SalesQuote project and modeling RequestQuote process

This is the beginning of the BPM 11gR1 hands-on tutorial. Start by creating the BPM Application and then design the Sales Quote business process.

  1. Open BPM Studio by selecting the BPM Process Analyst role when you start JDeveloper or if JDeveloper is already open, select Preferences from the Tools menu and in the Roles section, select BPM Process Analyst. Go to File | New to launch the Application wizard.

  2. In the New Gallery window, select Applications in the Categories panel. Select BPM Application in the Items panel. Specify the Application Name —SalesQuoteLab; the folder name should also be set to SalesQuoteLab.

  3. Click on the Next button. Enter QuoteProcessLab for the Project Name. Click on the Finish button.
  4. Go to the View | BPM Project Navigator. The BPM Project Navigator opens up the QuoteProcessLab – BPM Project that you just created.

    A single BPM Project can contain multiple related business processes. Notice that the BPM Project contains several folders. Each folder is used to store a specific type of BPM artifact. The Processes folder stores BPMN business process models; the Activity Guide folder is used to store the process milestones; the Organization folder stores Organization model artifacts such as Roles and Organization Units; the Business Catalog folder stores Services and Data; the Simulation folder stores simulation models to capture what-if scenarios for the business process and the Resources folder holds XSLT data transformation artifacts.

  5. To create a new business process model, you need to right-click on Processes and select New | Process. This launches the Create BPMN Process wizard. Select From Pattern option and select the Manual Process pattern. Recall that the Sales Quote Process is instantiated when Enter Quote task gets assigned to the Sales Representative role. The Asynchronous Service and the Synchronous Service patterns are used to expose the BPMN process as a Service Provider.

  6. Click on the Next button. Specify the name for the Process—RequestQuoteLab. Click on the Finish button. This creates a RequestQuoteLab process with a Start Event (thin circle) and End Event (thicker circle) of type None with a User Task in between. The User Task represents a human step that is managed by the BPM run-time engine—workflow component. The Start Event of type None signifies that there is no external event triggering the process. The first activity after the Start Event creates the process instance. In addition, a default swim lane—Role, gets created.

    In BPM Studio, the swim lanes in the BPMN process point to logical roles. A logical role represents a process participant (user or group) and needs to be mapped to physical roles (LDAP users/groups) before the process is deployed.

  7. Right-click on the User Task step, select Properties, and specify the name Enter Quote Details for the step. Click on the OK button.

  8. The next step is to rename the default created role to SalesRep. Navigate to QuoteProcessLab—BPM Project node and select the Organization node underneath it. Right-click on the Organization node and select Open. This opens up the Organization pane.

  9. Highlight the default role named Role and use the pencil icon to edit it to be SalesRep. Click on the + sign to add the following roles—Approvers, BusinessPractices, and Contracts. The following screenshot shows the list of roles that you just created:

  10. Close the Organization window. Go back to the RequestQuoteLab—process model. The participant for the Enter Quote Details—User Task is now set to the SalesRep role. Ignore the yellow triangular symbol with the exclamation for now. It indicates that certain configuration information is missing for the activity.

  11. Right-click on the process diagram just below the SalesRep-Lane. Choose the Add Role option.

  12. Choose Business Practices from the list of options available. Click on the OK button.

  13. Open the View | Component Palette. Drag and drop a User Task from the Interactive Tasks section of the BPMN Component Palette.

    Note: The Interactive Tasks refers to a step that is managed by the workflow engine. The Assignees (Participants) represent the business users who need to carry out the Interactive Task. The associated Task (work to be performed) is shown in the inbox of the assignees (similar to Email Inbox) when the Interactive Task is triggered. The User Task is the simplest type of Interactive Task where the assignee of the task is set to a single role. The actual work is performed only when the Assignee executes on his Task. The Task is presented to the Assignee through a browser based worklist application. In BPM Studio, the Assignee is automatically set to the role associated with the swim lane into which the Interactive Task is dropped.

  14. Place this new User Task after the existing Enter Quote Details—User Task by hovering on the center of the connector until it turns blue and name it Business Practices Review. The connection lines are automatically created.
  15. Drag the new Business Practices Review—User Task to the Business Practices lane. The performer or assignee for the Business Practices Review—User Task is automatically set to Business Practices—role.

  16. Create two more lanes for Approvers and Contracts. Drag and drop three User Tasks on to the process diagram, one following the other, and name them Approve Deal, Approve Terms, and Finalize Contracts respectively. Pin the Approve Deal step to the Approvers Lane. Pin the other two User Tasks—Approve Terms and Finalize Contracts steps to the Contracts Lane. Finally add a Service Task right after the Finalize Contracts step from the BPM Component Palette and name it Save Quote. The modified diagram should look like the following:

Read more about this book

(For more resources on Oracle, see here.)

The high-level outline of the process is complete. The next step is to modify the process further to promote Approve Deal and Approve Terms steps as parallel and concurrent activities. This can be achieved through a Parallel (AND) Gateway.

  1. Drag-and-drop a Parallel Gateway from the Gateway Pane and place it right before the Approve Deal step. Click on OK. This creates a pair of Parallel Gateways to indicate the parallel split and parallel join (merge).
  2. Right-click on the Parallel Split Gateway to bring up the Properties Editor and set the Name to Approvals.
  3. Right-click on the Parallel Merge Gateway to bring up the Properties Editor and set the Name to Approvals Merge.

  4. Rewire the outgoing connection from the Business Practices Review step to point to Approvals Gateway.
  5. Select Approve Deal incoming and outgoing sequence flows, right-click, and choose the Delete option to delete the incoming and outgoing sequence flows.
  6. Move the Approve Deal User Task and insert it between the Approvals and Approvals Merge Gateways.
  7. Right-click on the Approvals Gateway and select the Add Sequence Flow to Converging Gateway option to create a parallel path.

  8. Delete the outgoing sequence flow from Approve Terms step. Now drop the Approve Terms step to the newly created parallel path between Approvals and Approvals Merge gateways.

  9. Rewire the connections such that the outgoing connection from the Approvals Merge- Gateway is now pointing to the Finalize Contracts step. Do this by right-clicking on the Approvals Merge Gateway task and clicking on Add default sequence flow:

  10. There is one last modification to be done before completing the outline. The Business Practices Review, Approve Deal, and Approve Terms—User Tasks can have two possible outcomes—APPROVE or REJECT. The APPROVE outcome continues the process on the happy path. On the other hand, the REJECT outcome redirects the process to the Enter Quote Details step so that the Sales Representative can refine the quote and resubmit. The Exclusive (XOR) Gateway can be used to create a loop. Drag and drop an Exclusive Gateway—Business Practices Outcome just after the Business Practices Review step. Change outgoing sequence flow from Business Practices Review to Business Practices Outcome gateway by first selecting the connection leaving Business Practices review and then dragging the connection’s arrow over to the new Business Practices Outcome Gateway task.

  11. The outgoing business exception path from the newly added Exclusive Gateway should redirect the process flow to the Enter Quote Details step. Right click on the Business Practices Outcome Gateway and select Add conditional sequence flow. Join the connection to Enter Quote Details step. Right-click on this new connection and select Properties. Enter Business Practices Reject as the connection name. Right-click on the Business Practices Outcome Gateway and select Add default sequence flow. The connection line appears and you need to join it to the Approvals step. Name the default path to Business Practices Approve.

  12. Similarly, the process flow goes to Enter Quote Details step if the Approve Terms step or Approve Deal step outcome is REJECT. Drag and drop an Exclusive Gateway and name it Approvals Outcome just after the Approvals Merge step. The outgoing business exception path from the newly added Exclusive Gateway should redirect the process flow to the Enter Quote Details step as shown in the figure below. Change outgoing sequence flow from Approvals Merge Parallel Join Gateway to flow to the newly added Approvals Outcome XOR Gateway.

  13. Right-click on Approvals Outcome—Exclusive (XOR) Gateway and select the Add default sequence flow option. A connection appears and you need to join it to Finalize Contracts step. Right-click on the default connection to bring up the Properties wizard. Go to the Description tab. Type in Approved for the connection name.

  14. Right-click on Approvals Outcome—Exclusive (XOR) Gateway again and select the Add conditional sequence flow option. A connection appears and you need to join it to the Enter Quote Details step. Right-click on the conditional connection to bring up the Properties wizard. Go to the Description tab. Type in Deal or Terms Rejected for the connection name. The completed process outline looks like the following diagram. Save the process.

Summary

In this article we learned about creating a BPM Project. The simplicity and expressiveness of BPMN extends modeling to a wider business audience. It enables business users to get involved in understanding and improving their own processes. In addition, the BPMN models allow high fidelity mapping between business requirements and the actual executable process, as the model is the implementation. This business-empowered, model-driven execution allows business and IT stakeholders to collaborate throughout the process development life cycle.


Further resources on this subject:


Books to Consider

comments powered by Disqus