Hello Tobias,
I would say that you don’t need to do anything in the Trigger function, just to put your code into the Event function.
The Tamino kernel will call your Event function and pass one of these values to it (depending on the outcome of the operation):
XML_REQUEST_END 0
XML_COMMIT 1
XML_ROLLBACK 2
XML_CONNECTION_END 3
XML_SUB_COMMIT 4
XML_SUB_ROLLBACK 5</pre><BR>(Extract from:<BR><pre class="ip-ubbcode-code-pre"> C:\Program Files\Software AG\Tamino\Tamino 4.1.4.1\Documentation\servext\setypes.htm#seev
)
So you can have a simple “if” statement in the event function and send a message to the agent if it is necessary.
An alternative is to check the result of the Tamino operation inside your application, and take the appropriate action from there.
The Server Event function approach has the advantage of being “application agnostic”, so the code there will be called whenever a document is inserted (not just when a document is inserted through your application).
I hope that helps,
Trevor.
#API-Management#Tamino#webMethods