I have to write a generic plsql function which is supposed to submit any concurrent request. For example, If the concurrent program has 5 parameters my function also should take 5 parameters as input. Like wise if the concurrent program has n number of parameters my function should take n number of input parameters. Can this be achieved? Please suggest the best way.
I tried manually with If statements like IF no of program parameters = 5, API should submit for the 5 input arguments only. But I know this is not the best way as we don't know which program end user may submit and how many parameters it has.