getting started-with-oracle-so a lab#12

20
Getting Started with Oracle SoA Oracle SOA Parallel Processing by Using Flow Activity Lab#12 Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Beginner’s Guide for Oracle SoA. The document focuses on Parallel Processing by using Flow activity. Join our professional training program and learn from experts. History: Version Description Change Author Publish Date 0.1 Initial Draft Shiva Kant Pandey 21 st Aug 2012 0.1 Review#1 Amit Sharma 29 th Aug 2012 www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 1

Upload: amit-sharma

Post on 18-Nov-2014

782 views

Category:

Education


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Getting started-with-oracle-so a lab#12

Getting Started with Oracle SoA

Oracle SOA Parallel Processing by Using Flow Activity Lab#12

Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Beginner’s Guide for Oracle SoA. The document focuses on Parallel Processing by using Flow activity. Join our professional training program and learn from experts.

History:Version Description Change Author Publish Date0.1 Initial Draft Shiva Kant Pandey 21st Aug 20120.1 Review#1 Amit Sharma 29th Aug 2012

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 1

Page 2: Getting started-with-oracle-so a lab#12

ContentsContents....................................................................................................................................... 2

Parallel Processing by using Flow activity ....................................................................................3

Flow activity: ............................................................................................................................... 3

Flow activity Overview: ................................................................................................................3

Flow activity semantics:............................................................................................................... 3

Objective of Project: ....................................................................................................................4

Stepwise Procedure of Project Parallel Processing by using Flow activity.....................................4

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 2

Page 3: Getting started-with-oracle-so a lab#12

Parallel Processing by using Flow activity Flow activity: The Flow activity is used to configure parallel activity in BPEL processes. In theory, activities contained in two or more branches (sequence containers) inside a Flow activity are executed in parallel.

Flow activity Overview:

Used to define a set of activities that will execute concurrently (Most fundamental use of this construct)

Further allows expression of synchronization dependencies between activities (Control flow defined by a network of links)

A Flow defines one or more child activities that execute concurrently, which is the most basic use of this construct. The Flow activity also allows us to synchronize activities, such that one activity starts when another ends. On this slide we can see the syntax, and we see that you can optionally define one or more links, which must have names that are unique within their scope.

Flow activity semantics:Directly nested activities are started concurrently as soon as the flow activity is startedflow activity completes when all nested activities complete

All directly nested activities within a Flow are started at same time. The Flow completes when all of its nested activities are complete.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 3

Page 4: Getting started-with-oracle-so a lab#12

Objective of Project: Flow activity is a structured activity used for parallel processing all other nested activities simultaneously so here in project example we have simply taken two numbers i.e Number A &Number B as input & will get result as Addition ,Subtraction ,Multiplication ,Division simultaneously or we can say concurrently with the help of Flow activity in a bpel orchestration .

Stepwise Procedure of Project Parallel Processing by using Flow activity

Step 1: Create new project

New --->All Technologies--->SOA Tier --->SOA project --->OK ---> Project Name (ParallelProcessing) ---> ADF Business Component---> SOA--->Next

Step 2: Click Composite with BPEL Process

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 4

Page 5: Getting started-with-oracle-so a lab#12

Step 3: Click Finish

Step 4: Fill all its blank spaces

Name (ParallelProcess) ---->NameSpace (Leave as it is)--->Template(Select Synchronous BPEL Process)---> Service Name(ParallelProcess)----> mark Expose as a SOAP service --->Click Ok

Step 5: Open Composite.xml & observe BPEL Process

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 5

Page 6: Getting started-with-oracle-so a lab#12

Step 6: Click on ParallelProcess.xsd & it is automatically generated xsd for sync bpel process.

Now make changes on xsd rename input element as NumberA & create new element & name it as NumberB & set integer type for both the inputs. Rename result as NumberA & create another elements NumberB , Addition, Subtraction, Multiplication & Division with their types as shown in the next snap.

Step 7: This is the complete xsd Process -->sequence-->NumberA &NumberB ProcessResponse --> sequence --> NumberA ,NumberB , Addition, subtraction, Multiplication, Division .

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 6

Page 7: Getting started-with-oracle-so a lab#12

Step 8: Open ParallelProcess.bpel

Step 9: Drag & drop Flow Activity from component palette for nesting other activities on it & expand flow activity by clicking plus sign [+]

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 7

Page 8: Getting started-with-oracle-so a lab#12

Step 10: Observe flow activity that it has several parallel drop activities

Step 11: Drag & drop assign activity into flow activity inside drop activity & rename it as Addition , Subtraction, Multiplication, Division.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 8

Page 9: Getting started-with-oracle-so a lab#12

Step 12: Click on addition assign activity & open it to build xpath expression.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 9

Page 10: Getting started-with-oracle-so a lab#12

Step 13: Now drag & drop Expression on Addition inside Output Variable.

Step 14: Click NumberA under BPEL Variables---> insert into expression ---> + (Add sign) --> insert into expression ---> Click NumberB under BPEL Variables ---> insert into expression---> OK

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 10

Page 11: Getting started-with-oracle-so a lab#12

Step 15: Similarly

Click on Subtraction assign activity & open it to build xpath expression

Now drag & drop Expression on Subtraction inside Output Variable. Click NumberA under BPEL Variables---> insert into expression ---> - (minus sign) -->

insert into expression ---> Click NumberB under BPEL Variables ---> insert into expression---> OK

Step 16: Similarly

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 11

Page 12: Getting started-with-oracle-so a lab#12

Click on Multiplication assign activity & open it to build xpath expression

Now drag & drop Expression on Multiplication inside Output Variable. Click NumberA under BPEL Variables---> insert into expression ---> * (asterisk sign) -->

insert into expression ---> Click NumberB under BPEL Variables ---> insert into expression---> OK

Step 17: Similarly

Click on Division assign activity & open it to build xpath expression

Now drag & drop Expression on Division inside Output Variable. Click NumberA under BPEL Variables---> insert into expression ---> div -->Click

NumberB under BPEL Variables ---> insert into expression---> OK

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 12

Page 13: Getting started-with-oracle-so a lab#12

Step 18: Drag & drop assign activity below flow activity & rename it as Assignoutput , Click on it to open

Step 19: Map AssignOutput as shown below

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 13

Page 14: Getting started-with-oracle-so a lab#12

Step 20: Assign output completed & also BPEL process completed Now Click on Compile Icon shown below

Successful compilation with 0 errors & 0 warnings

Build Successful

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 14

Page 15: Getting started-with-oracle-so a lab#12

Step 21: Deploy Parallel Processing Project by right clicking on left pane on ParalelProcessing -->Deploy --->ParallelProcessing ---> Application server --->devsoa (select server domain) -->AdminServer---> Next ---> Finish

Deployment finished

Step 22: : Click On browser ---> Start Enterprise manger -----> login using credentials (username : weblogic & password : welcome1) , now click twice on ParallelProcessing[1.0] composite then Click on Test to test the composite instance .

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 15

Page 16: Getting started-with-oracle-so a lab#12

Step 23: Input /fill required data in all blank fields & click to TestWebServiceNumberA =50NumberB=5

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 16

Page 17: Getting started-with-oracle-so a lab#12

Step 24: Required output is shown below ,Now click on Launch Flow Trace to view flow trace of composite .

Step 25: Click on ParallelProcess

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 17

Page 18: Getting started-with-oracle-so a lab#12

Step 26: Click on Flow

Step 27: Observe flow diagram & notice that all operations are processing concurrently & in a parallel way .

Click on each operation one by one & observe that the processing time of all operations are similar ie 00:14:56

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 18

Page 19: Getting started-with-oracle-so a lab#12

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 19

Page 20: Getting started-with-oracle-so a lab#12

So from here we concluded that the flow activity is processing concurrently.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 20