I have a trigger that needs to create an Oracle Advanced queue message. The payload of that message should contain the new record that was created, that is accessible via :new.
What I am looking for is a way to transform the :new object into raw or a custom data type that can be set as the payload of the queue message, in a generic way.
At the moment I'm trying to convert :new to anydata and set that as the payload data type.
Best Answer
I implemented what you are trying to do this way: the transformation to a user defined object happens in a packaged procedure that is called by triggers.