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

Reprocess a transaction from TN

webMethods Community Member

webMethods Community MemberMon August 15, 2011 08:21 PM

webMethods Community Member

webMethods Community MemberMon August 15, 2011 10:51 PM

  • 1.  Reprocess a transaction from TN

    Posted Mon August 15, 2011 06:02 PM

    Hello All,
    Currently I am facing an issue while reprocessing a failed transaction from TN.
    A brief background-
    We have defined a processing rule in TN that will invoke a wM service only when an extended criteria (that is based on a custom attribute) matches.
    The same processing rule works when a new transaction comes in TN; but when we try to reprocess it the rule does not work.

    Work around from my end-
    I have tried to reproces sthe transaction by removing the extended criteria ; and it worked. But as per the business requirement the extended criteria needs to be there.I am trying to find out a way to get it over , but need your help on this.

    Just for your additional information: The extended criteria that we are using in the processing rule operator is a “EQUALS”.
    Would appreciate your responseat the earliest.

    regards,
    Suvankar


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


  • 2.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 06:36 PM


  • 3.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 07:47 PM

    Okay- But can you tell me why should I resubmit and not reprocess?


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


  • 4.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 07:52 PM

    Why are documents being reprocessed?


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


  • 5.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 07:58 PM

    The transaction had failed while doing a MQ call… We dont want to start off a new transaction in TN…rather continue with the errored out one and reprocess it so that it gets resolved.


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


  • 6.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 08:21 PM


  • 7.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 08:34 PM

    Is your TN transaction process triggered with right processing rule or default rule selected?

    HTH,
    RMG


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


  • 8.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 08:37 PM

    Yes, it is triggered with the right processing rule.


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


  • 9.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 08:48 PM

    You need to have reprocess with extended criteria right on the rule per your req?

    Is the criteria exist on the transaction that you are reprocessing?

    What is the error when you reprocessing?


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


  • 10.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 08:52 PM

    Yes… I am not getting any errors… The only thing is that when I try to reprocess the failed transaction , the processing rule is not getting invoked.

    The reason for this is the extended criteria. I tries to reprocess the same transaction from TN by removing the ext criteria, it worked fine. But in all other scenarios, the default processing rule is getting triggered.
    In the activiry log I see- “Routing Rule default selected”

    Also this is the processing rule that was exceuted when the message had first come in to the system.


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


  • 11.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 09:12 PM

    It means when you have the extended criteria the transaction attribute getting populated and not satisfying the condition thus selecting default rule:

    What is the attribute you have on the transaction first time and now since you removed the criteria?

    HTH,
    RMG


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


  • 12.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 09:19 PM

    Check the information in the TN User’s Guide in section “Reprocessing a Document.” Perhaps the information about attributes will help you resolve things.


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


  • 13.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 09:27 PM

    It is the same attibute that we are using as an extended criteria. Rather when the messge first comes into TN, the same PR is invoked and we are not manupulating the data in case of any failed transactions.
    As per the reprocess concepts is concerned, TN just picks the values that were stores in the TN DB and invokes the processing rule.
    Am I missing something? I dont think so.


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


  • 14.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 09:28 PM

    Yes, I have seen that but I dont find anything that can help me.


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


  • 15.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:28 PM

    What is the attribute name you were using in the PR and then in the particular transaction you have received?

    HTH,
    RMG


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


  • 16.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:36 PM

    Its is a customized attribute that we are using in PR and the same is being used in our transaction.

    Both are the same .


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


  • 17.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:43 PM

    Sorry I am asking this again…Does the custom attribute shows up in your transaction attribute section (when you double click open that document)?..unless attribute shows up and your PR is back with Extended Criteria EQUALS value condition the reprocessing wont work till then.

    If you remove and reprocess it that’s another story it will work and seems you proved it already:

    HTH,
    RMG


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


  • 18.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:45 PM

    Is TN configured to save the attributes? If not, that would explain the behavior.


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


  • 19.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:47 PM

    In the transaction analysis, I dont see that custom attribute. But then how it works when the document first enters in TN.


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


  • 20.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:49 PM

    You have raised a good point Rob.

    In that case please go to the Document Type section and check the particular doc type you are receiving and look in the “Attributes to Extract” and also Options tab–>Save Document to Database and make sure Attributes has check marked:

    HTH,
    RMG


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


  • 21.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:49 PM

    HI Reamon- Do you mean to say if the attributes are saved in the TN DB? We save the document content ,attributes in database .
    regarding the TN configuration, I am not sure ; but I can assure you that it is configures 30 %.


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


  • 22.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:51 PM


  • 23.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 10:54 PM

    What are the current changes you did to the rule? Can you test using resubmit and see if it’s working…

    I am still not fully clear why you are stuck with reprocessing?


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


  • 24.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 11:05 PM

    As discussed, please test it and post the results:

    HTH,
    RMG


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


  • 25.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 11:09 PM

    OK. I will post once am done with the testing as discussed.


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


  • 26.  RE: Reprocess a transaction from TN

    Posted Mon August 15, 2011 11:20 PM

    Yes, I mean the attributes being saved to the DB. You mentioned in an earlier post that you don’t see them in the Transaction Analysis. That would indicate they are not being saved. And would also be why reprocessing doesn’t select the rule that relies on those being present.


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


  • 27.  RE: Reprocess a transaction from TN

    Posted Tue August 16, 2011 02:26 AM

    Upon talking with him he indicated seeing custom attribute in the Transaction Analysis when he opened document and I was also confused earlier to his statements:


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


  • 28.  RE: Reprocess a transaction from TN

    Posted Tue August 16, 2011 03:40 PM

    Well, The issue has been resolved. In the code, the biz doc that we were getting from the TN; there in the attributes a variable was forecfully hardcoded which caused the version attribute disappear from transaction analysis . Because of the unavailabiity of the version(the custom attribute in the extended criteria) the PR was not getting invoked when reprocessed.


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


  • 29.  RE: Reprocess a transaction from TN

    Posted Tue August 16, 2011 04:02 PM

    cool…good to hear it resolved…as always debugging helps :slight_smile:


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


  • 30.  RE: Reprocess a transaction from TN

    Posted Thu August 18, 2011 11:38 PM

    Absolutely…Debugging helps always… :slight_smile:


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