When a document of a specific type is copied in the CMS, I want to trigger some action onto that document (example: I want the 'title' field to be "THIS IS A COPY").
Following the documentation, I have created a WorkflowEvent for this nodetype, which is triggered by te hipposys:eventconditionmethod 'copy'.
In my WorkflowEventWorkflow implementation, the fire() method gets triggered! wohoo! First success.
However, I would really like to access the newly-created (copied) document, to set the title field. How to do this?
1 - the fire(Document document) method isn't called. I guess this is because the CopyWorkflow interface returns a void, so this would be a no-go to access the document.
2 - get access to the the document by a private Document variable, which is persisted (@Persistent(column = "..")). This does give me a document, but it is the original one, not the copied one!
How to get the just-before copied document?
NB I noted (by looking through the hippolog:item's) that the fire-event of my own implementation has a later timestamp than the copy-event, so I guess that the copied document is already created.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. _______________________________________________
Hippo-cms7-user mailing list and forums