SlideShare a Scribd company logo
While Activity in BPEL
While activity in bpel is just like a simple while activity in c++/JAVA .SO its general algorithm
is perform certain task till the condition is valid.We will try to implement it practically in our
example to understand the use case of while activity.
Our logic here is we will provide an input value which will be int and then we will call a
partner link where in we will be incrementing the value of this input variable.Our while loop
will check how many times we have to invoke the service.
Ok so first of all we will design a BPEL process to increment the value of input data.
First of all create an application and then create a BPEL process .Give this bpel process
some logical name like Called because it will be called from another bpel process.Make this
bpel process synchronous process becasue we want to pass the output value to the caller
bpel process.
Now drag and drop an assign activity between the receive input and reply output.
Now double click on the assign acitivity and on the drop down box select a copy operation.
In the from choose the type as expression and provide the value
bpws:getVariableData('inputVariable','payload','/client:CalledProcessRequest/client:input')+
1
It can be created from the xpath building expression window double click on the input
variable in the BPEL variables table and just add 1 to it as shown below
Now assign this to the output variable so the window should appear like this
so your process is complete.Now deploy process and check that process in the BPEL
console.
Just provide an input as 2 and you will get an output as 3.So we are done with one process
now we will create another bpel process where in we will use our while concept.
Create one more bpel process and call it as Caller.Make this process as asynchronous
process.
Drag and drop a while activity in between the input and callback as below
Expand it and drag and drop a invoke activity in it as below.
Now select services from the component pallete and drag and drop a partnerlink in the
services space of the bpel designer.
a window will come up like this.
Provide the WSDL for the called process.YOu can copy it from the BPEL console.Just
select the Called bpel process in dashboard and switch to wsdl you will get the wsdl file
there.It will be of format
http://host:port/orabpel/default/Called/1.0/Called?wsdl
Provide it and choose the partner role as provider because the partner you are calling is the
provider for the service.You role can be left untouched.
Now just automatically create the input and output variable in invoke wizard
now drag and drop a assign acctivity and put one in between receive input and while loop
and other after the invoke in the while loop.
So your bpel process should now look like this
Now double click the first assign activity and create a copy operataion.
Assign the input vatiable to the input variable of the invoke activity
Double click on the second assign activity after the invoke and assign the result of the
invoke activity to the input of the invoke activity.
create one more copy operation and assign the output of the invoke to the intial input
variable.this we are doing as in our while loop we will be using a logic to compare with the
input value that we have passed.We can creat our own varialbe and compare it it depends
upon your own logic how you desing it i have chosen to assign it to the initial input variable.
Now we will specify the while condition
Click on condition expression and choose the expression builder to log in to the following
wizard
there in double click the input varialbe and provide a condition that it should be less than 5
as below
now you are done with the desingning of bpel process go ahead and deploy this process.
Invoke it and provide an input as 3 so that it will be invoking the partnerlink twice.So in bpel
console if you will open the flow you will get output like this
In order to clear the logic i will just write its algorithm
int i=3
while(i<5){
i++}
we are working on this simple logic.Initialized process with value 3 enter while loop and
invoke the partnerlink.it will increment the value to 4,it wil check the condition it is not valid
so again it will call the partner link and valur will be incremented.

More Related Content

What's hot

Functions
FunctionsFunctions
Functions
primeteacher32
 
Function Parameters
Function ParametersFunction Parameters
Function Parameters
primeteacher32
 
Function Returns
Function ReturnsFunction Returns
Function Returns
primeteacher32
 
Wrapping java in awesomeness aka condensator
Wrapping java in awesomeness aka condensatorWrapping java in awesomeness aka condensator
Wrapping java in awesomeness aka condensator
Flowa Oy
 
Services Apps Iand Flex Applications
Services Apps Iand Flex ApplicationsServices Apps Iand Flex Applications
Services Apps Iand Flex Applications
Sumit Kataria
 
Taming Brownfield Codebases with AOP
Taming Brownfield Codebases with AOPTaming Brownfield Codebases with AOP
Taming Brownfield Codebases with AOP
Donald Belcham
 
Javascript: master this
Javascript: master thisJavascript: master this
Javascript: master this
Barak Drechsler
 
Fluxish Angular
Fluxish AngularFluxish Angular
Fluxish Angular
Filip Janevski
 
Create a fake REST API without writing a single line of code
Create a fake REST API without writing a single line of codeCreate a fake REST API without writing a single line of code
Create a fake REST API without writing a single line of code
Yashobanta Bai
 
Finagle - an intro to rpc & a sync programming in jvm
Finagle - an intro to rpc & a sync programming in jvmFinagle - an intro to rpc & a sync programming in jvm
Finagle - an intro to rpc & a sync programming in jvm
PrasannaKumar Sathyanarayanan
 
Inside asp.net mvc framework
Inside asp.net mvc frameworkInside asp.net mvc framework
Inside asp.net mvc framework
Ciklum Ukraine
 
Inside ASP.NET MVC framework
Inside ASP.NET MVC frameworkInside ASP.NET MVC framework
Inside ASP.NET MVC framework
Ciklum Ukraine
 

What's hot (12)

Functions
FunctionsFunctions
Functions
 
Function Parameters
Function ParametersFunction Parameters
Function Parameters
 
Function Returns
Function ReturnsFunction Returns
Function Returns
 
Wrapping java in awesomeness aka condensator
Wrapping java in awesomeness aka condensatorWrapping java in awesomeness aka condensator
Wrapping java in awesomeness aka condensator
 
Services Apps Iand Flex Applications
Services Apps Iand Flex ApplicationsServices Apps Iand Flex Applications
Services Apps Iand Flex Applications
 
Taming Brownfield Codebases with AOP
Taming Brownfield Codebases with AOPTaming Brownfield Codebases with AOP
Taming Brownfield Codebases with AOP
 
Javascript: master this
Javascript: master thisJavascript: master this
Javascript: master this
 
Fluxish Angular
Fluxish AngularFluxish Angular
Fluxish Angular
 
Create a fake REST API without writing a single line of code
Create a fake REST API without writing a single line of codeCreate a fake REST API without writing a single line of code
Create a fake REST API without writing a single line of code
 
Finagle - an intro to rpc & a sync programming in jvm
Finagle - an intro to rpc & a sync programming in jvmFinagle - an intro to rpc & a sync programming in jvm
Finagle - an intro to rpc & a sync programming in jvm
 
Inside asp.net mvc framework
Inside asp.net mvc frameworkInside asp.net mvc framework
Inside asp.net mvc framework
 
Inside ASP.NET MVC framework
Inside ASP.NET MVC frameworkInside ASP.NET MVC framework
Inside ASP.NET MVC framework
 

Viewers also liked

Scan doc0001
Scan doc0001Scan doc0001
Scan doc0001
albertomendozasolis
 
Objectivity Agency of Year.pdf
Objectivity Agency of Year.pdfObjectivity Agency of Year.pdf
Objectivity Agency of Year.pdf
Grant Meldrum
 
Telemonitoring intervention for home care patients with heart failure and chr...
Telemonitoring intervention for home care patients with heart failure and chr...Telemonitoring intervention for home care patients with heart failure and chr...
Telemonitoring intervention for home care patients with heart failure and chr...
HTAi Bilbao 2012
 
Point of Contact - MDE
Point of Contact - MDEPoint of Contact - MDE
Point of Contact - MDE
Yulonda Walker
 
La polla
La pollaLa polla
La polla
felipemendez803
 
Presentation1
Presentation1Presentation1
Presentation1
roshani123
 
Rsu intesa sindacale
Rsu intesa sindacaleRsu intesa sindacale
Rsu intesa sindacaleFabio Bolo
 
El ballet
El balletEl ballet
لماذا يبتلي الله عباده
لماذا يبتلي الله عباده لماذا يبتلي الله عباده
لماذا يبتلي الله عباده
chamithami
 
30 minutos carrera continua resistencia aerobica
30 minutos carrera continua resistencia aerobica30 minutos carrera continua resistencia aerobica
30 minutos carrera continua resistencia aerobica
David palazon palau
 
1º eso calentamiento
1º eso calentamiento1º eso calentamiento
Politicas de conservacion y restauracion
Politicas de conservacion y restauracionPoliticas de conservacion y restauracion
Politicas de conservacion y restauracion
magdajerez
 
Calentamiento general
Calentamiento generalCalentamiento general
Calentamiento general
Daniel Moya
 

Viewers also liked (13)

Scan doc0001
Scan doc0001Scan doc0001
Scan doc0001
 
Objectivity Agency of Year.pdf
Objectivity Agency of Year.pdfObjectivity Agency of Year.pdf
Objectivity Agency of Year.pdf
 
Telemonitoring intervention for home care patients with heart failure and chr...
Telemonitoring intervention for home care patients with heart failure and chr...Telemonitoring intervention for home care patients with heart failure and chr...
Telemonitoring intervention for home care patients with heart failure and chr...
 
Point of Contact - MDE
Point of Contact - MDEPoint of Contact - MDE
Point of Contact - MDE
 
La polla
La pollaLa polla
La polla
 
Presentation1
Presentation1Presentation1
Presentation1
 
Rsu intesa sindacale
Rsu intesa sindacaleRsu intesa sindacale
Rsu intesa sindacale
 
El ballet
El balletEl ballet
El ballet
 
لماذا يبتلي الله عباده
لماذا يبتلي الله عباده لماذا يبتلي الله عباده
لماذا يبتلي الله عباده
 
30 minutos carrera continua resistencia aerobica
30 minutos carrera continua resistencia aerobica30 minutos carrera continua resistencia aerobica
30 minutos carrera continua resistencia aerobica
 
1º eso calentamiento
1º eso calentamiento1º eso calentamiento
1º eso calentamiento
 
Politicas de conservacion y restauracion
Politicas de conservacion y restauracionPoliticas de conservacion y restauracion
Politicas de conservacion y restauracion
 
Calentamiento general
Calentamiento generalCalentamiento general
Calentamiento general
 

Similar to While.doc

6.develop a synchronous service for caliculation of factorial of a given number
6.develop a synchronous service for caliculation of factorial of a given number6.develop a synchronous service for caliculation of factorial of a given number
6.develop a synchronous service for caliculation of factorial of a given number
xavier john
 
INTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docx
INTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docxINTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docx
INTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docx
mariuse18nolet
 
J developer 11g components ppt
J developer 11g components pptJ developer 11g components ppt
J developer 11g components ppt
TUSHAR VARSHNEY
 
Eclipse BPEL Designer
Eclipse BPEL DesignerEclipse BPEL Designer
Eclipse BPEL Designer
milliger
 
Eclipse BPEL Designer
Eclipse BPEL DesignerEclipse BPEL Designer
Eclipse BPEL Designer
milliger
 
Xavier async callback_fault
Xavier async callback_faultXavier async callback_fault
Xavier async callback_fault
xavier john
 
ISI Institute E-Services TP 3
ISI Institute E-Services TP 3 ISI Institute E-Services TP 3
ISI Institute E-Services TP 3
Abdessattar Ettaieb
 
IMPACT/myGrid Hackathon - Introduction to Taverna
IMPACT/myGrid Hackathon - Introduction to TavernaIMPACT/myGrid Hackathon - Introduction to Taverna
IMPACT/myGrid Hackathon - Introduction to Taverna
IMPACT Centre of Competence
 
oracle soa Examples
oracle soa Examplesoracle soa Examples
oracle soa Examples
xavier john
 
Workflow demo
Workflow demoWorkflow demo
Workflow demo
Kamal Raj
 
Exceptionhandling4remote fault
Exceptionhandling4remote faultExceptionhandling4remote fault
Exceptionhandling4remote fault
prathap kumar
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
Srushith Repakula
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
CodeOps Technologies LLP
 
Adapters db-104-informixstoredprocedure
Adapters db-104-informixstoredprocedureAdapters db-104-informixstoredprocedure
Adapters db-104-informixstoredprocedure
prathap kumar
 
Serverless and Kubernetes Workshop on IBM Cloud
Serverless and Kubernetes Workshop on IBM CloudServerless and Kubernetes Workshop on IBM Cloud
Serverless and Kubernetes Workshop on IBM Cloud
Ansgar Schmidt
 
]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2
Klaus Hofeditz
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
Amit Sharma
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
Amit Sharma
 
PT1420 Modules in Flowchart and Visual Basic .docx
PT1420 Modules in Flowchart and Visual Basic             .docxPT1420 Modules in Flowchart and Visual Basic             .docx
PT1420 Modules in Flowchart and Visual Basic .docx
amrit47
 
Introduction to Python - Training for Kids
Introduction to Python - Training for KidsIntroduction to Python - Training for Kids
Introduction to Python - Training for Kids
Aimee Maree Forsstrom
 

Similar to While.doc (20)

6.develop a synchronous service for caliculation of factorial of a given number
6.develop a synchronous service for caliculation of factorial of a given number6.develop a synchronous service for caliculation of factorial of a given number
6.develop a synchronous service for caliculation of factorial of a given number
 
INTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docx
INTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docxINTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docx
INTROPhase 4- Vanilla Bond ValuationProfessor Angela GarrettFI.docx
 
J developer 11g components ppt
J developer 11g components pptJ developer 11g components ppt
J developer 11g components ppt
 
Eclipse BPEL Designer
Eclipse BPEL DesignerEclipse BPEL Designer
Eclipse BPEL Designer
 
Eclipse BPEL Designer
Eclipse BPEL DesignerEclipse BPEL Designer
Eclipse BPEL Designer
 
Xavier async callback_fault
Xavier async callback_faultXavier async callback_fault
Xavier async callback_fault
 
ISI Institute E-Services TP 3
ISI Institute E-Services TP 3 ISI Institute E-Services TP 3
ISI Institute E-Services TP 3
 
IMPACT/myGrid Hackathon - Introduction to Taverna
IMPACT/myGrid Hackathon - Introduction to TavernaIMPACT/myGrid Hackathon - Introduction to Taverna
IMPACT/myGrid Hackathon - Introduction to Taverna
 
oracle soa Examples
oracle soa Examplesoracle soa Examples
oracle soa Examples
 
Workflow demo
Workflow demoWorkflow demo
Workflow demo
 
Exceptionhandling4remote fault
Exceptionhandling4remote faultExceptionhandling4remote fault
Exceptionhandling4remote fault
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless Way
 
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
AWS Lambda Hands-on: How to Create Phone Call Notifications in a Serverless W...
 
Adapters db-104-informixstoredprocedure
Adapters db-104-informixstoredprocedureAdapters db-104-informixstoredprocedure
Adapters db-104-informixstoredprocedure
 
Serverless and Kubernetes Workshop on IBM Cloud
Serverless and Kubernetes Workshop on IBM CloudServerless and Kubernetes Workshop on IBM Cloud
Serverless and Kubernetes Workshop on IBM Cloud
 
]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2]project-open[ Workflow Developer Tutorial Part 2
]project-open[ Workflow Developer Tutorial Part 2
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
 
Getting started-with-oracle-so a-iv
Getting started-with-oracle-so a-ivGetting started-with-oracle-so a-iv
Getting started-with-oracle-so a-iv
 
PT1420 Modules in Flowchart and Visual Basic .docx
PT1420 Modules in Flowchart and Visual Basic             .docxPT1420 Modules in Flowchart and Visual Basic             .docx
PT1420 Modules in Flowchart and Visual Basic .docx
 
Introduction to Python - Training for Kids
Introduction to Python - Training for KidsIntroduction to Python - Training for Kids
Introduction to Python - Training for Kids
 

More from xavier john

Unix day4 v1.3
Unix day4 v1.3Unix day4 v1.3
Unix day4 v1.3
xavier john
 
Unix day3 v1.3
Unix day3 v1.3Unix day3 v1.3
Unix day3 v1.3
xavier john
 
Unix day2 v1.3
Unix day2 v1.3Unix day2 v1.3
Unix day2 v1.3
xavier john
 
Interview questions
Interview questionsInterview questions
Interview questions
xavier john
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
xavier john
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
xavier john
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
xavier john
 
Oracle business rules
Oracle business rulesOracle business rules
Oracle business rules
xavier john
 
Soap.doc
Soap.docSoap.doc
Soap.doc
xavier john
 
Soa installation
Soa installationSoa installation
Soa installation
xavier john
 
Vx vm
Vx vmVx vm
Webservices
WebservicesWebservices
Webservices
xavier john
 
Xml material
Xml materialXml material
Xml material
xavier john
 
Xpath
XpathXpath
X query
X queryX query
X query
xavier john
 
Xsd basics
Xsd basicsXsd basics
Xsd basics
xavier john
 
Xsd
XsdXsd
Xslt
XsltXslt
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
xavier john
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
xavier john
 

More from xavier john (20)

Unix day4 v1.3
Unix day4 v1.3Unix day4 v1.3
Unix day4 v1.3
 
Unix day3 v1.3
Unix day3 v1.3Unix day3 v1.3
Unix day3 v1.3
 
Unix day2 v1.3
Unix day2 v1.3Unix day2 v1.3
Unix day2 v1.3
 
Interview questions
Interview questionsInterview questions
Interview questions
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
 
Custom faultpolicies
Custom faultpoliciesCustom faultpolicies
Custom faultpolicies
 
Oracle business rules
Oracle business rulesOracle business rules
Oracle business rules
 
Soap.doc
Soap.docSoap.doc
Soap.doc
 
Soa installation
Soa installationSoa installation
Soa installation
 
Vx vm
Vx vmVx vm
Vx vm
 
Webservices
WebservicesWebservices
Webservices
 
Xml material
Xml materialXml material
Xml material
 
Xpath
XpathXpath
Xpath
 
X query
X queryX query
X query
 
Xsd basics
Xsd basicsXsd basics
Xsd basics
 
Xsd
XsdXsd
Xsd
 
Xslt
XsltXslt
Xslt
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
 
All adapterscommonproperties
All adapterscommonpropertiesAll adapterscommonproperties
All adapterscommonproperties
 

Recently uploaded

Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
Yara Milbes
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
lorraineandreiamcidl
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Undress Baby
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
brainerhub1
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
mz5nrf0n
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 

Recently uploaded (20)

Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
SMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API ServiceSMS API Integration in Saudi Arabia| Best SMS API Service
SMS API Integration in Saudi Arabia| Best SMS API Service
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptxLORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
LORRAINE ANDREI_LEQUIGAN_HOW TO USE WHATSAPP.pptx
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdfRevolutionizing Visual Effects Mastering AI Face Swaps.pdf
Revolutionizing Visual Effects Mastering AI Face Swaps.pdf
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Unveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdfUnveiling the Advantages of Agile Software Development.pdf
Unveiling the Advantages of Agile Software Development.pdf
 
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
原版定制美国纽约州立大学奥尔巴尼分校毕业证学位证书原版一模一样
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 

While.doc

  • 1. While Activity in BPEL While activity in bpel is just like a simple while activity in c++/JAVA .SO its general algorithm is perform certain task till the condition is valid.We will try to implement it practically in our example to understand the use case of while activity. Our logic here is we will provide an input value which will be int and then we will call a partner link where in we will be incrementing the value of this input variable.Our while loop will check how many times we have to invoke the service. Ok so first of all we will design a BPEL process to increment the value of input data. First of all create an application and then create a BPEL process .Give this bpel process some logical name like Called because it will be called from another bpel process.Make this bpel process synchronous process becasue we want to pass the output value to the caller bpel process. Now drag and drop an assign activity between the receive input and reply output.
  • 2. Now double click on the assign acitivity and on the drop down box select a copy operation. In the from choose the type as expression and provide the value bpws:getVariableData('inputVariable','payload','/client:CalledProcessRequest/client:input')+ 1 It can be created from the xpath building expression window double click on the input variable in the BPEL variables table and just add 1 to it as shown below
  • 3. Now assign this to the output variable so the window should appear like this so your process is complete.Now deploy process and check that process in the BPEL console. Just provide an input as 2 and you will get an output as 3.So we are done with one process now we will create another bpel process where in we will use our while concept. Create one more bpel process and call it as Caller.Make this process as asynchronous process. Drag and drop a while activity in between the input and callback as below
  • 4. Expand it and drag and drop a invoke activity in it as below. Now select services from the component pallete and drag and drop a partnerlink in the services space of the bpel designer.
  • 5. a window will come up like this. Provide the WSDL for the called process.YOu can copy it from the BPEL console.Just select the Called bpel process in dashboard and switch to wsdl you will get the wsdl file there.It will be of format http://host:port/orabpel/default/Called/1.0/Called?wsdl Provide it and choose the partner role as provider because the partner you are calling is the provider for the service.You role can be left untouched. Now just automatically create the input and output variable in invoke wizard
  • 6. now drag and drop a assign acctivity and put one in between receive input and while loop and other after the invoke in the while loop. So your bpel process should now look like this Now double click the first assign activity and create a copy operataion.
  • 7. Assign the input vatiable to the input variable of the invoke activity Double click on the second assign activity after the invoke and assign the result of the invoke activity to the input of the invoke activity. create one more copy operation and assign the output of the invoke to the intial input variable.this we are doing as in our while loop we will be using a logic to compare with the input value that we have passed.We can creat our own varialbe and compare it it depends upon your own logic how you desing it i have chosen to assign it to the initial input variable.
  • 8. Now we will specify the while condition Click on condition expression and choose the expression builder to log in to the following wizard there in double click the input varialbe and provide a condition that it should be less than 5 as below now you are done with the desingning of bpel process go ahead and deploy this process. Invoke it and provide an input as 3 so that it will be invoking the partnerlink twice.So in bpel
  • 9. console if you will open the flow you will get output like this In order to clear the logic i will just write its algorithm int i=3 while(i<5){ i++} we are working on this simple logic.Initialized process with value 3 enter while loop and invoke the partnerlink.it will increment the value to 4,it wil check the condition it is not valid so again it will call the partner link and valur will be incremented.