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

Duplicate Transaction Handling Trigger

  • 1.  Duplicate Transaction Handling Trigger

    Posted Tue September 01, 2020 08:01 AM

    Hi ,

    I am trying to use the exactly-Once feature in trigger.
    when i am giving the details like below , i am able to see the duplicate message
    image

    Instead of discarding the message , Is there is a way to keep the message back to the queue and submits again to process when the TTL is expired.


    #webMethods


  • 2.  RE: Duplicate Transaction Handling Trigger

    Posted Wed September 02, 2020 07:23 AM

    Hi Harinadh,

    specify a flow service for Document resolver service and re-publish the Document back to the queue in this flow service.
    But this will create a new envelope with new timestamps etc.

    Regards,
    Holger


    #webMethods


  • 3.  RE: Duplicate Transaction Handling Trigger

    Posted Wed September 02, 2020 11:49 PM

    Thanks Holger ,

    i am able to use Document resolver service only when the document status is InDoubt , The requirement is if the document is duplicate , It needs to wait for certain time (TTL) and reprocess again.
    If exactly once is not suitable for this , is there any other options to use here.

    Thanks,
    Harinadh


    #webMethods


  • 4.  RE: Duplicate Transaction Handling Trigger

    Posted Thu September 03, 2020 08:26 AM

    Hi Harinadh,

    in this case you will have to build some custom logic where you check in the triggered service if this is a duplicate or not.
    When it is a duplicate, you can republish the document to your queue where it will be queued at the end of the queue.
    Before this document can be processed again all other documents in the queue will be processed then.
    When it is processed again, you need to check if this is first occurance of the duplicate (-> publish) or second (-> process).

    Please have a look at the IS Built-In Services Reference as you might find some helpful services here (i.e the folders pub.cache and pub.storage)

    Regards,
    Holger


    #webMethods