Web Services
  Home arrow Web Services arrow Page 4 - Business Processes and Web Services
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB SERVICES

Business Processes and Web Services
By: Sams Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 2
    2006-08-10

    Table of Contents:
  • Business Processes and Web Services
  • WSDL Extensions for Interactions with a Business Process
  • Overall Structure of a Process
  • Basic and Structured Activities

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Business Processes and Web Services - Basic and Structured Activities


    (Page 4 of 4 )

    Activities g are the composition primitives that implement the business logic of a BPEL process. BPEL distinguishes between basic and structured activities. Structured activities let you specify collections of nested activities and the order in which they take place. Basic activities represent atomic operations of a business process.

    Let's first look at the basic activities BPEL provides. A basic activity can be any of the following:

    • receive —Waits to receive a request message from a partner

    • invoke —Invokes an operation on a WSDL portType provided by another partner

    • reply —Provides a response to a request message received by a receive activity

    • terminate —Terminates the entire process

    • throw —Indicates an exceptional situation by throwing a fault from within the process

    • assign —Allows for data manipulation of variables

    • wait —Waits either for a period of time or until a specified point in time

    • empty —Provides a no-op instruction

    • compensate —Triggers compensation for a successfully completed group of activities (a so-called scope)

    Some activities, such as receive and reply, correspond to operations exposed by the WSDL interface of the BPEL process: operations that the process provides to its business partners and operations that the process requires from its partners.

    Basic activities can be combined into more complex constructs using structured activities. BPEL provides graph-oriented constructs (such as flow) as well as algebraic constructs (such as while and switch). Thus, BPEL supports whichever style you prefer to express the business logic of your process.

    Here are the structured activities provided by the language:

    • while —Lets you specify a loop.

    • switch —Provides a structured way of making decisions: the ability to select exactly one branch out of several choices.

    • pick —Lets you execute one out of several branches as soon as a suitable message arrives, or when a timeout occurs.

    • sequence —Specifies a group of activities that are executed sequentially.

    • flow —Specifies a collection of activities that can be executed in parallel. Links may be used to define execution order constraints including synchronization of parallel branches.

    • scope —Lets you define nested activities with its own set of variables, correlation sets, and handlers such as fault handlers, a compensation handler, and event handlers.

    These structured activities can be combined recursively to express arbitrarily complex aggregates of activities that implement the service provided by the process.

    Basic as well as structured activities can optionally have standard attributes such as the name of an activity. Later, we'll discuss additional standard attributes and elements that are applicable, for example, to activities nested in flows.

    Please check back next week for the continuation of this article.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

       · This article is an excerpt from the book "Building Web Services with Java: Making...
     

    Buy this book now. This article is excerpted from chapter 12 of Building Web Services with Java: Making sense of XML, SOAP, WSDL, and UDDI, written by Steve Graham et al. (Sams; ISBN: 0672326418). Check it out today at your favorite bookstore. Buy this book now.

    WEB SERVICES ARTICLES

    - Safety, Idempotence, and the Resource-Orient...
    - The Resource-Oriented Architecture in Action
    - Features of the Resource-Oriented Architectu...
    - The Resource-Oriented Architecture
    - Getting Started with Flex
    - Automated Billing and Faxing for the Web
    - An Introduction to Web Services
    - The Foundations of Web Services: From Novice...
    - Web Services Reengineering: Finishing Touches
    - Fault Handling with Web Services
    - Flow and Web Services
    - Process Lifecycles and Web Services
    - Business Processes and Web Services
    - Orchestrating Web Services
    - Notifications and Resources in the WS-Resour...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek