Skip to main content

Posts

Showing posts with the label TransactionContext

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