Both SAP XI and Oracle BPEL provide support for Java language. The blog is a step by step procedure for moving a java embedding found in Oracleâ€™s BPEL to modules in SAP XI.
There is a previous blog by me regarding migration from BIE translations to XI mappings. Please take a look at Migrate from BIE translations to SAP-XI mappings with ease . Here we shall see about migrating from Oracleâ€™s Java embeddings to SAP-XI modules.
The similarity between both bpelx:exec (Java bindings) and a XI module is that both are Java based and both can modify data and both are used for the same purpose.
The above image is a sample screen shot of Oracleâ€™s Java bindings.
How to Migrate?
- To identify entry and exit points.
- To identify oracle specific functions
In XI, every module is an EJB extends Module class and having the function signature,
ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData);
But in Oracleâ€™s Process Manager, it is like a code snippet and no parameter kind of stuffs. But two important functions are provided which can be compared to similar functions in XI module.
Oracleâ€™s Java Embedding
Element ssn = (Element)getVariableData("<root-node>","<element-name>","<xpath>");
addAuditTrailEntry("This is audit trail");
setVariableData("<root-node>", "<element-name>","<xpath>", "<value>");
SAPâ€™s XI Module
Object obj = inputModuleData.getPrincipalData();
Message msg = (Message) obj;
XMLPayload xmlpayload = msg.getDocument();
byte xmldata= xmlpayload.getContent();
TRACE.debugT(SIGNATURE, "This is trace");
Apart from the above mentioned most of the other codings are in Java and can be readily used without any problem.
addAuditTrailEntry in Oracle BPELConsole
TRACE.debugT function replicates the same in SAP-XI.
With this procedure, the entire Oracleâ€™s Java embeddings can be easily converted to SAP-XI modules.