Building Your-A-Oracle BPM 11g____oracle

Source: Internet
Author: User
Tags ldap naming convention
Purpose

This is tutorial shows you with a simple Hello world application using Oracle BPM Suite 11gr1. It also shows to the deploy of the process to the BPM engine and test it in the BPM Workspace. Time to Complete

Approximately 2 hours Overview

In this tutorial, your use Studio, the JDeveloper based IDE, to create a simple Hello world process. This process demonstrates the "use of" a file service, interactive tasks implemented by the Human Workflow engine, and by co Nditional branching. The conditions for the conditional branching are determined through the "use of" a business object and a business rule. You are also use a Script task to initialize a variable. After building the process, you deploy it to the BPM engine and test it runtime environment. Scenario

There are two roles involved in the "Hello World Process", the sender of the, acting in the requester role, and a Reviewer, acting in the reviewer role. The requester is prompted, through the Request hello activity, to enter a Hello message, greeting, and a date for the mess Age. After the "form is submitted", a business the rule was applied to the message content to determine whether the message requires a Review, based on the length of the greeting and message fields.

If the message does is not require review, the process flows to a script task, which initializes a variable needed by the NEX T task, then the "sent" to the "Write message" to "be written" to "the" file system. IF the message requires review, the reviewer are prompted to review the and either or accept it. IF the message is rejected, it returns to the Request Hello the requester can correct, otherw Ise, it goes directly to the "Write message" Activity for file processing.

Software and Hardware Requirements

In order to perform this tutorial, for must have previously installed Oracle BPM 11gr1 and JDeveloper 11.1.1.3 with both T He SOA and BPM extensions. You'll also need to have at least one user in the internal LDAP database of your WebLogic server in the OBPM N in order to map this user to the roles, you define in your Hello world process. You can take care of both of all tasks (installation and seeding of the LDAP database) by performing the installing Orac Le BPM 11g OBE.PrerequisitesIf you are have not yet installed obpm 11GR1, perform the installing OBPM 11g OBE. Performing this OBE would also seed your LDAP database. If you already have a obpm 11GR1 installation, but still wish to seed the Demo Community in the WebLogic server ' s Interna L LDAP Database, download the zip filecontaining ANT files needed to perform this task. This is available from OTN as a SOA 11g Human Workflow sample code download. You'll need to modify some parameters in the ANT builds file to match your particular. A ReadMe file is included in the zip file to assist for you.creating the Basic Hello World Application

In the "section" you create the basic starting to the Hello world process using the JDeveloper Studio. The add two Activities-an interactive activity and a service activity. The end user is able to enter a Hello message, using the BPM Workspace. The message would be captured in a business object and passed to a file service, which, in turn would write the message to a Disk file. Later, you expand upon the "add more complexity" to the process.

Create several process elements throughout this section of the tutorial. The following naming convention is used throughout this section:

Name Description
Helloworld_obe Application Name
Helloworldproject Main Project Name
helloworld_ui Project containing user task Web form (s)
Helloworldprocess Process Name

creating the Process Model

1.

Open JDeveloper Studio 11.1.1.3 from the Windows Start menu. When prompted to select a and choose Thedefault role. Click OK.

Close the Daily Tips window.

2.

Create a new application. Click the New application bar in the left panel.

The BPM Application Wizard opens. Name the application "Helloworld_obe" and accept the default directory for storing application files (C:\JDeveloper\mywork ). Select BPM application in the Application Template panel.

Click Next.

3.

In step 2 of the create BPM Application wizard, Create a project for the Helloworld_obe AP Plication. Enterhelloworldproject as the Project Name. Notice That bpm and soa are selected as Project technologies by default. Click finish.

In the upper left corner of the JDeveloper Studio window for you to the Navigator panel. This is contains two tabs that'll be important to you perform this tutorial:the application navigator tab and the bpm Project Navigatortab. Currently the Application Navigator tab is selected by default. You can, the Helloworld_obe application appearing in the Drop-down list just above the panel and the Helloworldproject Appearing as the parent node within the panel. The fact it appears in italics indicates that there are unsaved.

Click The save All icon on the main toolbar.

.

To create a new process within this project, the THE BPM project Navigator tab. Then Right click Onprocesses and select new > process .

In the bpm process wizard, select The from Pattern radio button, and then the  Manual Process pattern. Clicknext.

In the next screen, name the process "Helloworldprocess" and click finish.

The

The process model appears in the middle of the JDeveloper window. The tab name would be same as the name of the your new process.

Click the save All icon again.

You could wish to close the other tabs, as you are using these. An x will appear in the upper right corner to the tab when your cursor it. The X would close the tabbed pane. All of the can is easily reopened later from either the menu or one of the navigator panels.

5.

Change the name of the user task in the model. Notice the model begins and ends with two circular icons. The circle on the "the" "A start activity" and "circle on" the right is an end activity. Connecting the two circles is a line that represents the flow of activities the process. This is called The sequence Flow and sometimes are referred to as the ' transition line '. Between the "Start and end activities are a user task type activity. Right click in this and Select properties.

When The properties dialog box appears, in The basic tab, change the name of the Activi Ty to "Request Hello". Click ok.

Don t worry about the warning message indicating this no implementation has been. You are doing this later.

Click save all.

6.

Add the Component Palette to the JDeveloper window by selecting View > Component Palette from the menu. The palette would appear in the right pane of the window.

Select BPM from the Drop-down list at the top of the Component Palette, then expand the activities Accordion panel as show N below.

7.

ADD a service to the process. You'll need to the-room for another, the sequence flow.

Click on the "End activity" and drag it to the right, dropping it's right side the "design panel, allowing enough Roo M for another activity icon to fit between the "Request Hello activity and the" end activity.

Now click the "Service activity icon" Component Palette and drag it to the Sequence flow between Request Hello and En D. Drop it there. Notice that the "transition line turns blue" The drop target area approaches the line.

Important:the transition line must is blue when you drop the object in order for the transition line to is connected to T His activity.

When you drop it, the Properties dialog box is for the activity opens. On the Basic tab, change the activity's name to ' Write message '.

Click OK.

8.

Click Save all. Your process model should now look similar to this.

creating the Business Object
1.

Now you'll create a business object capable of storing multiple pieces of data, related to the "the user enters in the" Request Hello activity. This object is populated when the user enters the message. It'll then be passed to the "Write message" activity so this message can be written to a file. The

Business objects are stored in modules within the Business Catalog. In the bpm Project Navigator, expand Thehelloworldproject node. Right click On business catalog and select new > Module.

When prompted to name the new module, enter "Hellotypes" and Click ok.

The hellotypes module now appears beneath the Business Catalog node.

2.

Right click the Hellotypes module and select New > Business Object.

In the Create Business Object window, enter "Helloobject" as the Name and accept Hellotypes as the destination Module. Click OK.

The Helloobject editor now opens in the editor.

3.

ADD the following three attributes to Helloobject:

Attribute Name Type
Date Time
Greeting String
Message String

The following instructions describe to create the date attribute.

Click the plus sign next to the Attributes section of the Business Object Editor as shown below:

The Create Attribute popup appears. Enter "Date" as the Name value. Select time as the Drop-down list. Click OK.

The date attribute now is appears in the Attributes section of the Business Object editor.

Continue working in this way to create the other two attributes. When your finish, the Business Object editor should look like this:

Click Save All and close the Helloobject tab in the editor panel.

4.

Now create a process data object of type Helloobject U can use it in your process.

If The helloworldprocess tab is still open in the editor panel, click anywhere in the design editor to Pu T the focus on the helloworldprocess. (If It isn't open, select it within the BPM Project Navigator by expandinghelloworldproject > processes to Find I T)

When a process has been given focus, a detailed outline of it structure appears in The structure pane In the lower left corner of the JDeveloper window.

Right click on process Data objects in the Structure pane and select new.

In the create Data object popup, enter "Hello" as the Name and click the ellipses button to open anot Her window to search for complex data types.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.