Thank you very much for the hint with using the WITH Statement function wrapper. I did a little research and i came up with this solution, that helped here.
This is my Query in standard oracle node:
WITH
FUNCTION run_wrapper(
pParam1 IN VARCHAR2,
pParam2 IN NUMBER,
pParam3 IN VARCHAR2,
pParam4 IN VARCHAR2,
pParam5 IN VARCHAR2
) RETURN VARCHAR2
IS
vParam1 VARCHAR2(4000) := pParam1;
vParam4 VARCHAR2(4000) := pParam4;
vOut1 NUMBER;
vOut2 NUMBER;
vOut3 VARCHAR2(4000);
BEGIN
my_procedure(
vParam1, – IN OUT / optional
pParam2, – IN
pParam3, – IN
vParam4, – IN OUT / optional
pParam5, – IN
vOut1, – OUT
vOut2, – OUT
vOut3 – OUT
);
RETURN json_object(
'param1' VALUE vParam1,
'param4' VALUE vParam4,
'out1' VALUE vOut1,
'out2' VALUE vOut2,
'out3' VALUE vOut3
);
END;
SELECT run_wrapper(
:pParam1,
:pParam2,
:pParam3,
:pParam4,
:pParam5
) AS result_json
FROM dual
Do NOT put a semikolon in the end after “dual”! Then define the Parameters (in my case pParam1 … pParam5) as IN-Parameters with the values from the node before the oracle node. (please be aware, that i anonymized my actual query and have not really tested this solution. Important is, that you declare IN-OUT params in the query in case you’re having any of them.
After that, define a Code node to beautify the Result.
I hope this could help someone.
Thank you very much.