Sie sind auf Seite 1von 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 Beginners G ide !or "racle So#. The doc ment !oc ses on Parallel Processing b$ sing %low activit$. &oin o r pro!essional training program and learn !rom e'perts.

Histor$( )ersion ,.,.-

*escription +hange Initial *ra!t 0eview1-

# thor Shiva .ant Pande$ #mit Sharma

P blish *ate /-st # g /,-/ /2th # g /,-/

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -

!ontents
+ontents....................................................................................................................................... / Parallel Processing b$ sing %low activit$ ....................................................................................3 %low activit$( ............................................................................................................................... 3 %low activit$ "verview( ................................................................................................................ 3 %low activit$ semantics(............................................................................................................... 3 "b4ective o! Pro4ect( .................................................................................................................... 5 Stepwise Proced re o! Pro4ect Parallel Processing b$ sing %low activit$.....................................5

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page /

Parallel Processing by "sing Flow activity Flow activity


The %low activit$ is sed to con!ig re parallel activit$ in BPE6 processes. In theor$, activities contained in two or more branches 7se8 ence containers9 inside a %low activit$ are e'ec ted in parallel.

Flow activity Overview


:sed to de!ine a set o! activities that will e'ec te conc rrentl$ 7;ost ! ndamental se o! this constr ct9 % rther allows e'pression o! s$nchroni<ation dependencies between activities 7+ontrol !low de!ined b$ a networ= o! lin=s9 # %low de!ines one or more child activities that e'ec te conc rrentl$, which is the most basic se o! this constr ct. The %low activit$ also allows s to s$nchroni<e activities, s ch that one activit$ starts when another ends. "n this slide we can see the s$nta', and we see that $o can optionall$ de!ine one or more lin=s, which m st have names that are ni8 e within their scope.

Flow activity se#antics


*irectl$ nested activities are started conc rrentl$ as soon as the !low activit$ is started !low activit$ completes when all nested activities complete #ll directl$ nested activities within a %low are started at same time. The %low completes when all o! its nested activities are complete.

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page 3

Ob$ective o% Pro$ect
%low activit$ is a str ct red activit$ sed !or parallel processing all other nested activities sim ltaneo sl$ so here in pro4ect e'ample we have simpl$ ta=en two n mbers i.e > mber # ?> mber B as inp t ? will get res lt as #ddition ,S btraction ,; ltiplication ,*ivision sim ltaneo sl$ or we can sa$ conc rrentl$ with the help o! %low activit$ in a bpel orchestration .

Stepwise Proced"re o% Pro$ect Parallel Processing by "sing Flow activity


Step 1 +reate new pro4ect >ew ---@#ll Technologies---@S"# Tier ---@S"# pro4ect ---@". ---@ Pro4ect >ame 7ParallelProcessing9 ---@ #*% B siness +omponent---@ S"#---@>e't

Step 2( +lic= +omposite with BPE6 Process

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page 5

Step 3( +lic= %inish

Step &( %ill all its blan= spaces >ame 7ParallelProcess9 ----@>ameSpace 76eave as it is9---@Template7Select S$nchrono s BPE6 Process9---@ Service >ame7ParallelProcess9----@ mar= E'pose as a S"#P service ---@+lic= "=

Step ' "pen +omposite.'ml ? observe BPE6 Process

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page A

Step ( +lic= on ParallelProcess.'sd ? it is a tomaticall$ generated 'sd !or s$nc bpel process. >ow ma=e changes on 'sd rename inp t element as > mber# ? create new element ? name it as > mberB ? set integer t$pe !or both the inp ts. 0ename res lt as > mber# ? create another elements > mberB , #ddition, S btraction, ; ltiplication ? *ivision with their t$pes as shown in the ne't snap.

Step ) This is the complete 'sd Process --@se8 ence--@> mber# ?> mberB Process0esponse --@ se8 ence --@ > mber# ,> mberB , #ddition, s btraction, ; ltiplication, *ivision .

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page B

Step * "pen ParallelProcess.bpel

Step + *rag ? drop %low #ctivit$ !rom component palette !or nesting other activities on it ? e'pand !low activit$ b$ clic=ing pl s sign CDE www.bispsol tions.com www.bisptrainigs.com www.h$periong r .com Page F

Step 1, "bserve !low activit$ that it has several parallel drop activities

Step 11 *rag ? drop assign activit$ into !low activit$ inside drop activit$ ? rename it as #ddition , S btraction, ; ltiplication, *ivision.

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page G

Step 12 +lic= on addition assign activit$ ? open it to b ild 'path e'pression.

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page 2

Step 1- >ow drag ? drop E'pression

on #ddition inside " tp t )ariable.

Step 1& +lic= > mber# nder BPE6 )ariables---@ insert into e'pression ---@ D 7#dd sign9 --@ insert into e'pression ---@ +lic= > mberB nder BPE6 )ariables ---@ insert into e'pression---@ ".

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -,

Step 1' Similarl$ +lic= on S btraction assign activit$ ? open it to b ild 'path e'pression >ow drag ? drop E'pression on S btraction inside " tp t )ariable. +lic= > mber# nder BPE6 )ariables---@ insert into e'pression ---@ - 7min s sign9 --@ insert into e'pression ---@ +lic= > mberB nder BPE6 )ariables ---@ insert into e'pression---@ ".

Step 1( Similarl$ www.bispsol tions.com www.bisptrainigs.com www.h$periong r .com Page --

+lic= on ; ltiplication assign activit$ ? open it to b ild 'path e'pression >ow drag ? drop E'pression on ; ltiplication inside " tp t )ariable. +lic= > mber# nder BPE6 )ariables---@ insert into e'pression ---@ H 7asteris= sign9 --@ insert into e'pression ---@ +lic= > mberB nder BPE6 )ariables ---@ insert into e'pression---@ ".

Step 1)( Similarl$ +lic= on *ivision assign activit$ ? open it to b ild 'path e'pression >ow drag ? drop E'pression on *ivision inside " tp t )ariable. +lic= > mber# nder BPE6 )ariables---@ insert into e'pression ---@ div --@+lic= > mberB nder BPE6 )ariables ---@ insert into e'pression---@ ".

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -/

Step 1* *rag ? drop assign activit$ below !low activit$ ? rename it as #ssigno tp t , +lic= on it to open

Step 1+ ;ap #ssign" tp t as shown below

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -3

Step 2, #ssign o tp t completed ? also BPE6 process completed >ow +lic= on +ompile Icon shown below

S ccess! l compilation with , errors ? , warnings

B ild S ccess! l

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -5

Step 21 *eplo$ Parallel Processing Pro4ect b$ right clic=ing on le!t pane on ParalelProcessing --@*eplo$ ---@ParallelProcessing ---@ #pplication server ---@devsoa 7select server domain9 --@#dminServer---@ >e't ---@ %inish

*eplo$ment !inished

Step 22( +lic= "n browser ---@ Start Enterprise manger -----@ login sing credentials 7 sername ( weblogic ? password ( welcome-9 , now clic= twice on ParallelProcessingC-.,E composite then +lic= on Test to test the composite instance .

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -A

Step 2-( Inp t I!ill re8 ired data in all blan= !ields ? clic= to TestJebService > mber# KA, > mberBKA

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -B

Step 2& 0e8 ired o tp t is shown below ,>ow clic= on La"nch Flow .race to view !low trace o! composite .

Step 2' +lic= on ParallelProcess

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -F

Step 2( +lic= on Flow

Step 2) "bserve !low diagram ? notice that all operations are processing conc rrentl$ ? in a parallel wa$ . +lic= on each operation one b$ one ? observe that the processing time o! all operations are similar ie ,,(-5(AB

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -G

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page -2

So !rom here we concl ded that the !low activit$ is processing conc rrentl$.

www.bispsol tions.com

www.bisptrainigs.com

www.h$periong r .com

Page /,

Das könnte Ihnen auch gefallen