Skip to main content

Posts

Showing posts with the label XSLT

ApplicationContext creation/usage among XSLs in BPEL(Oracle SOA) process.

In these posts post1 , post2 , I have explained how to create custom XSL functions using Java in both BPEL(Oracle SOA)/BPM(Oracle BPM) processes. This post describes about ,how to create ApplicationContext and how to use it among XSLs across Oracle SOA process. Below example explains on how to calculate  age of persons by taking array of DateOfBirth  inputs. I know it can be done with simple XSL transformation by calling custom XSL function.  But, the main intention is to explain the ApplicationContext creation and usage of it over multiple XSLs used in the course of BPELprocess. ApplicationContext meaning here is : Create a Java Context(with inspiration of ThreadLocal class)  object which gets initialized at start of the BPEL process with necessary data either in the form of Collections or POJO, And hold these initialized definitions throughout the lifecycle of BPEL Process token(instance) ,which can be read or modified as and when needed. Note/Warning : It can be

Write Java Code inside XSL of Oracle BPM

This post talks about writing custom xsl functions using Java in Oracle BPM process. Please check my previous post on creating custom XSL functions in Oracle SOA/BPEL process. Below example explains about creating XSL function for finding age of person based on Date Of Birth input. Step1 : Create a BPM Synchronous process inside Jdeveloper BPM studio.Something like shown in below. I took very basic example,since the main aim is to create Custom XSL function based on Java code.    i) XSD created to handle input and output of BPM process is :   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 <?xml version="1.0" encoding="windows-1252" ?> <xsd:schema xmlns:xsd= "http://www.w3.org/2001/XMLSchema" xmlns:tns= "http://ande.prabhas.org/xsd/v1" targetNamespace= "http://ande.prabhas.org/xsd/v1" elementFormDefault= "qualified" &g