Академический Документы
Профессиональный Документы
Культура Документы
simple workflow
2
BY ADMIN ON DECEMBER 24, 2008AMIS, DATABASE, DEVELOPMENT TOOLS, IT, ORACLE E-BUSINESS
SUITE, PL/SQL, SOFTWARE DEVELOPMENT, TECHNICAL ARCHITECTURE
Share this on .. 0 0 0 0
In this blog I will show you how easy it is to build a process with Oracle Workflow. This demo consist of an automatic step (plsql
function) and a FYI notification. The process will be deployed in the workflow environment described in my previous blog (Part
1).
Workflow Builder
To build a process you need Oracle Workflow Builder 2.6.3.5. The install file can be downloaded from the following
url: www.oracle.com/technology/software/products/workflow/index.html
After the default installation, create a tnsnames.ora with the appropriate database connect information in the OWF client home
directory.
With Workflow Builder you are able to build workflow processes and deploy them to the Oracle Workflow Server (OWS). By
default there are some demo processes deployed during the installation of the OWS. You can view these processes with
Workflow Builder by clicking file/open in the menu. A file/database connection window will appear.
You can use the OWS install database account to connect.
If you can’t see any Item Type, maybe the language of your Workflow Builder installation doesn’t match one of the available
languages of the OWS installation in the database.
Detailed information about Oracle Workflow Builder and the demo workflow processes provided with OWS can be found in the
Oracle Workflow Developer Guide (download.oracle.com/docs/cd/B19306_01/workflow.102/b15853.pdf).
The information you entered in the Workflow Quick Start Wizard window Is used to create a new item type and process activity
in the data store.
The Standard item type is loaded into the new data store so that you can include standard activities in the process you create.
The Process window opens for the new process activity you defined. The Process window displays a Start and an End activity.
To create a database activity, right click somewhere in the process window and select New Function.
Right click again in the process window and select New Notification.
Connect the activities in the Process window by right clicking the start activity. Hold the mouse button down. Drag the mouse to
the message activity. Release the mouse button. Repeat this to connect the rest.
Don’t forget to save occasionally!!!! During the save action you will receive some error messages. Ignore them and press save
again.
Link the message to the notification. Double click the notification in the Process window.
Select on the node tab of the notification as performer type Item Attribute and as value Adressee. Save your process again. No
error message if everything is ok.
Save your process to the database. Select file/save as.
You can use the OWS install database account to connect.
END DEMO;
/
CREATE OR REPLACE PACKAGE BODY "DEMO" AS
l_name varchar2(100);
l_wish varchar2(100);
BEGIN
—
— execute only in run mode
—
if ( funcmode = ‘RUN’ ) then
—
— Read attribute values
—
—
— create the message text
—
resultout := ‘COMPLETE’;
end if;
exception
when others then
wf_core.context(‘DEMO’,’CREATE_MC_MESSAGE’,itemtype,itemkey,actid,funcmode);
raise;
END CREATE_MC_MESSAGE;
END DEMO;
/
Open the workflow homepage (http://<hostname>:<port>/pls/wf/wfa_html.home) and select the Launch Processes option. Click
on the Demo link in the page that appears.
The worklist contains now an open notification. Enter the worklist and open the notification.