I want to log the changes that have been made to my document.
So I need to check what kind of changes have been made to my document.
Can I access to the readed state of BusinessDocument ?
X-Application Version: 3.1.2
Tamino Version : 3.1.1
Platform : Win2k
WebContainer : Tomcat 3.3a
JDK Version : 1.3.1
BusinessDocuments of X-Application store a copy of the current document tree, if they receive the transition ?modify? which switches the state of the document from READ to MODIFIABLE. Have a look at the package
The state class ?Modifiable? holds a reference to the ?old? document tree without modifications. If you want, you can add a new behavior here. You could add new state class derived from ?Modifiable?. If your state receives the transition ?commit? / ?quasiCommit? , you could compare the existing document with the ?old? document to extract the changes made by the user. For the old state ?Modifiable? is replaced by your new state class, you have to change the ?Read? class. Instead of creating a new state ?Modifiable? create your state when the ?modify? transition is received.
you could also have a look at the topicManipulating two doctypes at same time.
This solutions creates separate log documents in Tamino Server each time a modification is requested.