Gopalan Suresh Raj
Web Cornucopia
Gopalan's Profile
Archives
« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today
Click me to subscribe Download Open ESB
Syndication
Search

Table of Contents
Tags
bpel choreography ejb esb http integration javacaps javaee javaone jax-ws jbi management openesb orchestration process-oriented rest sca service-oriented soa soap wsdl xml xsd
Links
 
Referrers

Today's Page Hits: 195

Map of Visitors
Locations of visitors to this page
Caveat Emptor
This is my personal weblog. The contents of this Weblog represent my personal opinion which may differ from the official views of my employer, Sun Microsystems, Inc. or any past employers. I do not speak for my employer or any past employers.
View Gopalan Suresh Raj's profile on LinkedIn
« BPEL: Specifying... | Main | BPEL: Modeling Event... »
Friday Jul 14, 2006
Jul
14
BPEL: How do I introduce intentional delays in a business process?
There may be cases where we may need to introduce an intentional delay for a specific duration, or delay execution until a specified time. For example, we may need to pause to instruct the business process to invoke a web service at a specified time. Or there may be cases where we may need to wait for some time before we can resume execution. The equivalent of Java's Thread.sleep() method in BPEL is the <wait> activity.

The <wait> activity provides a couple of attributes:
1. The for attribute: When we need to specify a time interval or a duration or a period of time to wait for, we use the for attribute. For example,

<wait for="'PT37M46S'"/>

instructs the business process to wait for a duration of 37 minutes, and 46 seconds. Look at this blog entry to understand what the value 'PT37M46S' means

2. The until attribute: When we need to specify a certain specific date or time - in other words, specify a deadline, we use the until  attribute. For example,

<wait until="'2008-10-28T10:28:19'"/>

instructs the business process to wait until the deadline 10:28:19am, 28th October 2008 before resuming execution. Look at this blog entry to understand what the value '2008-10-28T10:28:19' means.


Download the Java EE 5 Tools Bundle Beta from http://java.sun.com/javaee/downloads/index.jsp for FREE, and provide us feedback on the improvements you'd like to see. It combines the new Java EE 5 SDK with NetBeans IDE 5.5 Beta, NetBeans Enterprise Pack 5.5 Early Access, and Sun Java System Application Server Platform Edition 9. This bundle also contains Project Open ESB Starter Kit Beta, Java EE 5 samples, Java BluePrints, and API docs (Javadoc).






Posted at 08:54AM Jul 14, 2006 by Suresh Gopalan in BPEL  |  Listen to this article Listen to this entry  |  Comments added Comments[0]
Tags:
Share This Post: del.icio.us | furl | simpy | slashdot | technorati | digg

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed

Disclaimer: The contents of this Weblog represent my personal opinion which may differ from the official views of my employer, Sun Microsystems, Inc. or any past employers.



View blog top tags

Enter your email address:

Delivered by FeedBurner

[Valid RSS]