31 Human Workflow Tutorial
31.1 Introduction to the Human Workflow Tutorial
Learn how to create a new application and SOA project and how to design a human task to send a vacation request to a manager for approval or rejection with the help of the tutorial.
The application developed in this tutorial is based on the following use-case:
-
an employee submits a vacation request
-
the manager approves or rejects the vacation request
-
the employee receives a notification that approves or rejects their request
The SOA composite application contains the following components:
-
A BPEL process
-
A human task, for approving a vacation request submitted by an employee
It also describes how to create an Oracle ADF-based task form that enables the end user to act upon the vacation request once the application is deployed and running. To create an Oracle ADF-based task form you must create a new application and a new project.
This tutorial guides you through the following tasks:
-
Using the SOA Composite Editor
-
Using the Human Task Editor
-
Modeling a single approval workflow using Oracle BPEL Designer
-
Creating an Oracle ADF-based Oracle BPM Worklist
-
Using Oracle BPM Worklist to view and respond to the task
31.2 Prerequisites
This tutorial makes the following assumptions:
-
Oracle SOA Suite is installed on a host on which the SOA Infrastructure is configured.
-
You are familiar with basic BPEL constructs, including BPEL activities and partner links, and basic XPath functions. Familiarity with the SOA Composite Editor and Oracle BPEL Designer, the environment for designing and deploying BPEL processes, is also assumed.
Create a file named VacationRequest.xsd
with the following syntax. This file includes the schema for the vacation request and subsequent response.
<schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/VacationRequest" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="VacationRequestProcessRequest"> <complexType> <sequence> <element name="creator" type="string"/> <element name="fromDate" type="date"/> <element name="toDate" type="date"/> <element name="reason" type="string"/> </sequence> </complexType> </element> <element name="VacationRequestProcessResponse"> <complexType> <sequence> <element name="result" type="string"/> </sequence> </complexType> </element> </schema>
31.3 Creating an Application and a Project with a BPEL Process
Learn how to create an application and a project with a BPEL process.
This tutorial makes the following assumptions:
-
Oracle SOA Suite is installed on a host on which the SOA Infrastructure is configured.
-
You are familiar with basic BPEL constructs, including BPEL activities and partner links, and basic XPath functions. Familiarity with the SOA Composite Editor and Oracle BPEL Designer, the environment for designing and deploying BPEL processes, is also assumed.
Create a file named VacationRequest.xsd
with the following syntax. This file includes the schema for the vacation request and subsequent response.
<schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/VacationRequest" xmlns="http://www.w3.org/2001/XMLSchema"> <element name="VacationRequestProcessRequest"> <complexType> <sequence> <element name="creator" type="string"/> <element name="fromDate" type="date"/> <element name="toDate" type="date"/> <element name="reason" type="string"/> </sequence> </complexType> </element> <element name="VacationRequestProcessResponse"> <complexType> <sequence> <element name="result" type="string"/> </sequence> </complexType> </element> </schema>
To create an application and a project with a BPEL process:
31.4 Creating the Human Task Service Component
Learn to create the human task service component in which you design your human task.
To create the human task service component:
31.6 Associating the Human Task and BPEL Process Service Components
Learn how to associate your human task with the BPEL.
Associate your human task with the BPEL process you created in Creating an Application and a Project with a BPEL Process.
To associate the human task and BPEL process service component:
31.7 Creating a Task Form Project
Learn to create a project for the task form. This is a separate project from the one in which you created the human task.
To create a task form project:
31.9 Creating an Application Server Connection
Learn to create a connection to the application server on which Oracle SOA Suite is installed and configured with the SOA Infrastructure. These instructions describe how to create a connection to Oracle WebLogic Server.
To create an application server connection
31.10 Deploying the SOA Composite Application
Learn how to deploy to the application server on which you created the connection.
To deploy the SOA composite application
31.11 Initiating the Process Instance
Learn how to initiate the process instance.
See Administering Oracle SOA Suite and Oracle Business Process Management Suite for instructions on accessing the Test Web Service page for initiating the process instance.