I solved the problem myself.
On the PMU event I did following:
On the application notepad I changed the value for the parameter TEXT from UPDATE to $ax.action
On the expressions notepad I added following expressions:
Code:
$ax.action="update"
$x=rtecall("rinit", $L.rc, $query, "probsummary")
$x=rtecall("select", $L.rc, $query, $ax.query.passed)
if (problem.status in $query="Closed") then ($ax.action="close")
This means that if an update is received for a closed ticket the event will be processed as a close event instead.
Bookmarks