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
-
ora:countNodes('InputVariable','part1','ns3:TargetDetails')
xmlns:ora="http://schemas.oracle.com/xpath/extension"
Trace
Java snippit to add to BPEL to trace:
-
java.lang.String TraceLogMessage = null;
-
java.lang.Boolean tracelogenabled;
-
-
tracelogenabled = oracle.apps.aia.core.eh.logging.AIALogger.isTraceLoggingEnabled("INFO","{http://xmlns.oracle.com/ABCSImpl/EbizOSS/Core/CreateInvoiceListEbizOSSR…}CreateInvoiceListEbizOSSReqABCSImpl");
-
setVariableData("TraceLogEnabled", tracelogenabled);
-
-
if (tracelogenabled.booleanValue())
-
{
-
-
-
oracle.apps.aia.core.eh.logging.AIALogger.logTraceMessage("INFO", null ,"Testing 123");
-
-
}
links
http://forums.oracle.com/forums/thread.jspa?threadID=853027
http://www.oracle.com/technetwork/middleware/adapters/overview/index.ht…