sivakumar kala
sivakumar kala

Reputation: 27

Generating a random hexadecimal number in Xquery

i would like to have a random hexadecimal number generated for one of the field in the Xquery(which is used in OSB).

Previous mapping which we have,

<ns0:EmployeeID>{ data($EmployeeDetails/ns1:Employee/ns1:EmployeeID) }</ns0:EmployeeID>

Any help here?

Thanks

Upvotes: 0

Views: 253

Answers (2)

Enzo Godoy
Enzo Godoy

Reputation: 1

Maybe you shouldn't use uuid() because is just an activity's id representation, the best you could do it would be to write some java program using the require classes and invocated it through a java callout.

Upvotes: 0

sivakumar kala
sivakumar kala

Reputation: 27

i think, i have figured it out instead of the below

<ns0:EmployeeID>{ data($EmployeeDetails/ns1:Employee/ns1:EmployeeID) }</ns0:EmployeeID>

i have used like below and it worked

<ns0:EmployeeID>{fn-bea:uuid()}</ns0:EmployeeID>

Upvotes: -1

Related Questions