Hi community,
I have a listener on DocumentUpdateEvent
List<Event> getEvents()
{
return Arrays.asList(new DocumentUpdateEvent())
}
void onEvent(Event event, Object source, Object data)
{
println "onEvent start !"
def obj = source.getObject("Revision.RevisionClass")
source.setComment('this is listener comment')
println obj.getName()
obj.set("approvedRev", '1.1', data)
println "onEvent end"
}
I'm sure onEvent is executed but the document is not saved.
The same problem with DocumentUpdatedEvent
when i added saveDocument, i got stackoverflow.
I tried on XWIKI 4.4 and 5.4.5, with no success
Thanks in advance :)