webMethods

webMethods

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
  • 1.  Can you update the TN Processing Status

    Posted Thu March 18, 2004 11:11 PM

    Hello,

    I have a processing rule that calls out to a flow service which posts a document to an internal server. If something goes wrong in that flow service, I would like to change the “Processing Status” attribute within TN to “Error”. The goal is to identify which transactions failed in the TN DB and reprocess in batch at a later time. Has anyone else run into this and found a solution?


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Can you update the TN Processing Status

    Posted Thu March 18, 2004 11:26 PM

    In your ProcessingRule flowService that is invoked by TN ,when ever the service/businesslogic error occurs then use the wm.tn.doc:changeStatus service.
    This service needs input bizdoc that you have it in the pipeline and also set newSystemStatus=Error (which is the Processing Status" attribute within TN).

    HTH.


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Can you update the TN Processing Status

    Posted Fri March 19, 2004 02:41 PM

    It could use wm.tn.doc.changeStatus to update processing and userstatus. But as per webMethods documentation (“Typically you should only change the user status of the document. The processing status is
    primarily reserved for internal use by the Trading Networks system.”).


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 4.  RE: Can you update the TN Processing Status

    Posted Fri March 19, 2004 04:11 PM

    SVSUP,

    I do agree with you and suggest to change UserStatus rather than Processing Status,but changing processing status would not do any effect in TN though.Since i have seen couple of environments updating the processing status for internal use.


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Can you update the TN Processing Status

    Posted Fri March 19, 2004 04:53 PM

    You could, however its better to change userStatus instead, unless you really have to. Use wm.tn.doc:changeStatus newUserStatus param.


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Can you update the TN Processing Status

    Posted Fri March 19, 2004 07:26 PM

    Hey Thanks guys. I’m going with changing the User Status. While testing I’ve noticed that changing the Processing Status has unpredictable behaviour. Sometimes it will change to “Error”, othertimes it says “Done”. Seems like a timing issue. Regardless, User Status will do the trick.

    Thanks again


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB