BPEL General Reference

Submitted by code_admin on Tue, 07/17/2018 - 13:51

See also

Time stuff

10 Days = P10D
a week = P7D
a month = P1M - a month
One year, one day, one hour and one second = P1Y1DT1H1S
five minutes = PT5M

Expression for 30 secs in future = xp20:add-dayTimeDuration-to-dateTime(xp20:current-dateTime(),'PT30S')

(https://blogs.oracle.com/reynolds/entry/whats_the_time_mr_bpel)

c

access nth: /ns2:EMP_REF_VAR/ns2:Row[bpws:getVariableData('nCounter')]

CountNodes

ora:countNodes("1","2", "3")

This function returns size of elements as an integer.The signature of this function is ora:countNodes(variableName, partName?, locationPath?). The arguments are:
1) variableName - the source variable for the data,
2) partName - the part to select from the variable (optional),
3)locationPath - provides an absolute location path (with / meaning the root of the document fragment representing the entire part) to identify the root of a subtree within the document fragment representing the part (optional).

InputVariable = Variable name
part1 = Part name
/ns2:TargetDetails = node to count

  1. ora:countNodes('InputVariable','part1','ns3:TargetDetails')

xmlns:ora="http://schemas.oracle.com/xpath/extension"

Trace

Java snippit to add to BPEL to trace:

  1. java.lang.String TraceLogMessage = null;
  2.     java.lang.Boolean tracelogenabled;  
  3.  
  4. tracelogenabled = oracle.apps.aia.core.eh.logging.AIALogger.isTraceLoggingEnabled("INFO","{http://xmlns.oracle.com/ABCSImpl/EbizOSS/Core/CreateInvoiceListEbizOSSR…}CreateInvoiceListEbizOSSReqABCSImpl");                                                                                  
  5. setVariableData("TraceLogEnabled", tracelogenabled);        
  6.  
  7. if (tracelogenabled.booleanValue())                                                                                
  8. {                                                                                                                                                                                      
  9.                        
  10.          
  11.    oracle.apps.aia.core.eh.logging.AIALogger.logTraceMessage("INFO",  null ,"Testing 123");
  12.    
  13. }

links

http://forums.oracle.com/forums/thread.jspa?threadID=853027
http://www.oracle.com/technetwork/middleware/adapters/overview/index.ht…

RJM Article Type
Quick Reference