Groovy Time! How to use XML dateTime and duration in BPM 12c by Jan Kettenis

 

clip_image001

In this article I show some examples of handling XML dateTime and durations in Groovy in the context of a Oracle BPM 12c application. Working with dates and durations in Java has always been painful. Mainly because date and time is a complex thing, with different formats and time zones and all, but I sometimes wonder if it has not been made overly complex. Anyway. Working with XML dates is even more complex because the limited support by XPath functions. Too bad because in BPM applications that work with dates this has to be done very often, and as a result I very often see the need to create all kinds of custom XPath functions to mitigate that.
This issue of complexity is no different for Groovy scripting in Oracle BPM 12c. And let handling of dates be a typical use case for using Groovy scripting because of this limited support by XPath. Therefore, to get you started (and help myself some next time) I would like to share a couple of Groovy code snippets for working with XML dates and durations that may be useful. These example are based on working with the XML dateTime type, and do not handle with the complexity of time zones and different formats. In my practice this is 99% of the use cases that I see.
In my opinion you still should limit using Groovy to handle dates and to the minimum, and rather use custom XPath functions, or create a Java library which you can can import in Groovy. But when you have to, this just might come in handy.

Instantiate an XML Date

If you have an XML element of type dateTime, you use an XmlCalender object. An XmlCalender object with the current time can instantiated as shown below: Read the complete article here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

Set-up a 12c SOA/BPM Infrastructure by Rene van Wijk

 

In this post, we will show how to create automation scripts in order to set-up middleware environments.

Preparation

In the example, we will use the following software

· Oracle JDK

· Fusion Middleware Infrastructure (fmw_12.1.3.0.0_infrastructure.jar) which can be obtained from the Oracle Software Delivery Cloud

· Oracle SOA Suite (fmw_12.1.3.0.0_soa.jar) which can be obtained from the Oracle Software Delivery Cloud

First, we have to decide which directory structure we are going to use. Below an example is given in which the binaries (that create the run-time) are separated from the configuration.

1.  ${BASE_DIRECTORY}
2.      /soa12.1.3
3.          /configuration
4.              /applications
5.                  /base_domain
6.              /domains
7.                  /base_domain
8.              /nodemanagers
9.                  /base_domain
10.                                     /installation (directory that contains all the software)
11.                                         /coherence
12.                                         /em
13.                                         /oracle_common
14.                                         /osb
15.                                         /soa
16.                                         /wlserver
17.                                     /jdk1.7.0_55

Installation

To install an Oracle SOA Suite Infrastructure (that uses Oracle JDK as the Java Virtual Machine) we can use the following script

Read the complete article here.

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki

SOA Suite 12c & BPM Suite 12c local launch events

We are looking for partners who run together with us SOA Suite 12c and BPM Suite 12c launch events. To learn more about them, please get our marketing kit here.
The first local launch event in the Netherlands by our partner Amis was with more than 80 attendees a super success! Thanks and congratulations to Lucas & team! Some nice quotes and pictures from the event:
SOA 12C and BPM 12C where the C stands for Cloud and also stands for Consolidation. #soa12c @soacommunity
Cheerful reaction on live demo of BPM debugger. Results in happy developers. @lucasjellema Twitter
BPM and BPEL debugger in BPM12c Simplified and easy development for BPM processes. Nice! Twitter
At our SOA Community Workspace (SOA Community membership required you can find a complete kit for your event including ppt material and demos: SOA Suite 12c kit & BPM Suite 12c ppt kit

SOA & BPM Partner Community

For regular information on Oracle SOA Suite become a member in the SOA & BPM Partner Community for registration please visit www.oracle.com/goto/emea/soa (OPN account required) If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn image[7][2][2][2] Facebook clip_image002[8][4][2][2][2] Wiki