Pass an id to an external application

Could i know how to pass an id from a Bonita form to an external application? I have a form in Bonita which generates a unique id. I want this id to be passed into the external application. I have an html widget with a link to the url. When the user clicks on it, the generated should be passed in it.

Can anybody let me know how it can be done?


Regards, Anand