IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Access to old values of BusinessDocument before commit

  • 1.  Access to old values of BusinessDocument before commit

    Posted Mon June 24, 2002 11:04 AM

    Hello,
    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


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: Access to old values of BusinessDocument before commit

    Posted Tue June 25, 2002 11:34 AM

    Hello,

    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
    businessdocument.state
    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.

    Bye,
    Christian.


    #webMethods
    #Tamino
    #API-Management


  • 3.  RE: Access to old values of BusinessDocument before commit

    Posted Thu June 27, 2002 08:57 AM

    Hello,

    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.

    Regards, Harald

    Regards, Harald


    #API-Management
    #Tamino
    #webMethods