You are working on notifications in a package and you must send an email containing an error message in case a Package step fails.
Which odiRef method do you use to access the error message? (Choose the best answer.)
A.
odiRef.getSession()
B.
odiRef.getInfo()
C.
odiRef.getPrevStepLog()
D.
odiRef.getStep()
Explanation:
(https://docs.oracle.com/middleware/1212/odi/ODIKD/odiref_reference.htm#ODIKD1147)
C
I think that B is correct.
getInfo method is used to return information about the current task.
Question isn’t about the previous package step.
I think @Vigaro is right the correct is “C”. Because when You send an mail with the the error happent in the previous step. And You want the log from previous not from current task. The current task is OdiSendMail or procedure.
Am I wrong?
C
Since in the example in the below blog ,he is using odiRef.getPrevStepLog to send a mail for all
http://odiexperts.com/get-the-error-message-of-any-failed-odi-objects-inside-package/