Oracle SOA Suite (MOSC)

MOSC Banner

Oracle 12C IF condition over database output variable.

Hi, I have an BPEL application that reads the data from database, stores results into a variable and applies a IF condition on it.

Current condition: boolean(bpws:getVariableData('InvokeInvcExcptSelect_OutputVariable','InvcMtchExcptCollection','/ns17:InvcMtchExcptCollection/ns17:InvcMtchExcpt/ns17:invcMtchWrkflwStgInd')) = true()

I am trying to add a new condition where if any of "invcMtchWrkflwStgInd" in resulting rows starts with example '11'.

New condition:

starts-with((bpws:getVariableData('InvokeInvcExcptSelect_OutputVariable','InvcMtchExcptCollection','/ns17:InvcMtchExcptCollection/ns17:InvcMtchExcpt/ns17:invcMtchWrkflwStgInd'),'11')= true()

I am sure it will work if the database select output contains only one row. Will the new condition works same if multiple rows are returned?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center