Senin, 16 Januari 2017

Generate Unique value in OSB

The function fn-bea:uuid() returns a universally unique identifier. The function has the following signature:

 fn-bea:uuid() as xs:string

You can use this function in the proxy pipeline to generate a unique identifier. You can insert the generated unique identifier into an XML document as an element.

For example, suppose you want to generate a unique identifier to add to a message for tracking purposes. You could use this function to generate a unique identifier.

Let's look an simple example:

Drop an Assign activity anywhere in the pipeline and add the expression:


Run the pipeline directly and see the output of the Assign activity:


Every time you run the pipeline, a unique value will get generate.

That's it !!

Tidak ada komentar:

Posting Komentar