Home > Ask the SOA Experts > Questions & Answers > BPEL in a cyclical scenario
Ask The SOA Expert: Questions & Answers
EMAIL THIS

BPEL in a cyclical scenario

Doron Sherman EXPERT RESPONSE FROM: Doron Sherman

Pose a Question
Other SOA Categories
Meet all SOA Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 13 February 2004
Can BPEL be used in a cyclical scenario where three processes call each other sequentially? (i.e. client => A => B => C => A)

>
To implement the scenario as described using BPEL, let's use a sequential order approval sequence where the order ID is used for correlating the instances of process A, B and C in the sequence. The document schema carrying the approvals for the order is represented as:

XML Schema:
    OrderApproval
        OrderId   (string)
        ApprovalA (string)
        ApprovalB (string)
        ApprovalC (string)
The pseudo BPEL code for processes A, B and C is:
process A:
    Begin
    Receive input OrderApproval
    Assign "Approved by CompanyA" to OrderApproval/ApprovalA
    Invoke service (process) B
    Wait for callback from C with correlation set to OrderId
    Assign OrderApproval to output
    Invoke output OrderApproval on client callback
    End
process B:
    Begin
    Receive input OrderApproval
    Assign "Approved by CompanyB" to OrderApproval/ApprovalB   
    Invoke service (process) C
    End
process C:
    Begin
    Receive input OrderApproval
    Assign "Approved by CompanyC" to OrderApproval/ApprovalC   
    Invoke service (process) A
    End
The sequence is instrumented by a client enacting process A, resulting in the call sequence A => B => C => A. See the diagrams FlowA, FlowB and FlowC for a visual representation of the executed flow in each of the three BPEL processes.

Flow A


Flow B


Flow C


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
BPEL
BPMN with BPEL a debated topic among experts
Oracle SOA Suite Developer's Guide by Matt Wright
BPEL tutorial
Co-evolution of BPMN and BPEL drives BPM in SOA settings
UML modeler includes BPMN support
BPM Special Report: What you model is what you monitor
Verizon uses BPEL app to cut down on code, check for fraud, and go green
Visual orchestration tool addresses event processing and SOA
SOA, BPEL working on the railroad
UML and SOA the Microsoft way
BPEL Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
BPEL  (SearchSOA.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



SOA Governance White Papers - BPM, EDA, IT Governance
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2001 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts