Your SlideShare is downloading. ×

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

643

Published on

Published in: Education, Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
643
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
39
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 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 0.1 0.1 Description Change Initial Draft Review#1 www.bispsolutions.com Author Shiva Kant Pandey Amit Sharma www.bisptrainigs.com Publish Date 21st Aug 2012 29th Aug 2012 www.hyperionguru.com Page 1
  • 2. Contents Contents....................................................................................................................................... 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
  • 3. 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 started flow 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
  • 4. 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
  • 5. 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
  • 6. 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
  • 7. 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
  • 8. 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
  • 9. Step 12: Click on addition assign activity & open it to build xpath expression. www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 9
  • 10. 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
  • 11. 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
  • 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
  • 13. 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
  • 14. 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
  • 15. 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
  • 16. Step 23: Input /fill required data in all blank fields & click to TestWebService NumberA =50 NumberB=5 www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 16
  • 17. 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
  • 18. 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
  • 19. www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 19
  • 20. So from here we concluded that the flow activity is processing concurrently. www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 20

×