3 New Date/Time Comparison Extension Funtions for Netbeans BPEL 2.0 Editor

Checkout 3 new BPEL Extension functions for date/time comparisons. These functions are implemented as extension functions as BPEL 2.0 (which uses XPath 1.0) standard function list does not include these. The syntax and definition for these is derived from XPath 2.0 spec (http://www.w3.org/TR/xquery-operators/). These new functions being -

sxxf:dateTime-less-than  (Less-than comparison on xs:dateTime values)
sxxf:date-less-than      (Less-than comparison on xs:date values)
sxxf:time-less-than      (Less-than comparison on xs:time values)

Where the namespace prefix sxxf stands for "http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/XPathFunctions" which need to be defined in the process definition.

Note that these functions can either take literal value (corresponding to  xs:dateTime, xs:date or xs:time representation) or BPEL Variable of appropriate time.

A test case to showcase example usage of these function is checked in driver tests. Check out BPEL Project and Composite Application from https://open-jbi-components.dev.java.net/source/browse/open-jbi-components/driver-tests/bpelse/xpathfunctions/DateTimeComparison/.

Copying from the test case-

sxxf:dateTime-less-than($NewWSDLOperationIn.dateTime1, $NewWSDLOperationIn.dateTime2)
sxxf:date-less-than($NewWSDLOperationIn.date1, $NewWSDLOperationIn.date2)
sxxf:time-less-than($NewWSDLOperationIn.time1, $NewWSDLOperationIn.time2)

sxxf:dateTime-less-than('2008-09-29T17:15:43.68-08:00', '2008-09-29T17:15:43.67-08:00')
sxxf:date-less-than('2008-09-28', '2008-09-29')
sxxf:time-less-than('17:15:43.68-08:00', '17:15:43.67-08:00')

Comments:

How can I add this new extension to Netbeans 6.5 or 6.7.1 so that I can check dates?

Posted by Kimberly Kennedy on September 29, 2009 at 05:52 AM PDT #

I ave the same question plase help me.

Thanks

Posted by felix on November 07, 2009 at 12:07 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Malkit works in software development at Oracle, Inc. working in Oracle Business Process Manager, part of Oracle Fusion Middleware. Malkit came to Oracle through Sun Microsystems acquisition, living and working in Los Angeles, California.

Search

Archives
« April 2014
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