Web Services
  Home arrow Web Services arrow Page 2 - Flow 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

Flow and Web Services
By: Sams Publishing
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2006-08-24

    Table of Contents:
  • Flow and Web Services
  • XPath Extension Functions
  • Flows
  • Link Semantics
  • Putting Together the Flow Sample

  • 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


    Flow and Web Services - XPath Extension Functions


    (Page 2 of 5 )

    Last but not least there is the need to access data from a process not only as part of assignments, but also to control the behavior of a process (for example, in conditions). In order to enable arbitrary XPath expressions to access data from the process, BPEL introduces several XPath extension functions.

    The getVariableData function extracts arbitrary values from variables. The partName and locationPath arguments are optional:

    getVariableData("variableName", "partName",
    "locationPath")

    A variable can carry global message properties, the values of which can be extracted using the getVariableProperty function with the qualified name of the global property:

    getVariableProperty("variableName",
    "propertyQName")

    The getLinkStatus function returns a Boolean indicating the status of a link. It can only be applied in join conditions (see the section on links for details):

    getLinkStatus("linkName") 

    The extension functions are useful for all kinds of expressions: in transition conditions, join conditions, while conditions, and switch cases, as well as for duration and deadline expressions.

    More Basic Activities: wait, empty

    Let's briefly discuss the remaining two basic activities: wait and empty. The wait activity allows the business process to wait for a specific time interval (specified by a duration-valued XPath expression) or until a certain deadline is reached (specified by a deadline-valued XPath expression). The following wait activity waits until New Year's Eve:

    <wait until="2004-12-31T18:00+1:00"/>

    This wait activity waits for three days and 10 hours:

    <wait for="P3DT10H"/>

    The empty activity does nothing. It may, for example, be used as implementation of a fault handler if you need to catch and suppress a fault:

    <empty/>

    More Web Services Articles
    More By Sams Publishing


       · 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 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek