Search code examples
guidtibcotibco-emstibco-business-works

How to generate CorrelationID from Tibco BW5?


I am using "Queue Sender" pattern for sending JMS message from Tibco BW5. I set ReplayTo and correlationID into "Sender" and read response from "Get JMS Queue Message" using CorrelationID

enter image description here

enter image description here

enter image description here

please see https://www.rubix.nl/blogs/jms-request-response-patterns-tibco-businessworks-and-ems for mode detail "Queue Sender" pattern explanation.

I am using

concat($_processContext/ns11:ProcessContext/ProcessId, tib:timestamp()) 

for generating CorrelationID that I think may be not unique enough. What is the best practice for generating CorrelationID from TibcoBW?


Solution

  • you can use uuid() function. It generates an Universally Unique IDentifier (UUID)

    guid generation