integrate standard URL based application in BPMS

Suppose there is a standard url based application with parameter passing via url. It is possible and how to dynamically create the url so that it would be available within a CAF task (url to be clicked on or available as subpage) dynamically build on basis of the input parameters of the BPM process. When closing the URL based application we would come back to the task page to still submit for example. Any ideas or samples will be much appreciated

Could you clarify something please?

Are you trying to generate a URL to open a Task Details Page? Or, are you trying to generate a URL somewhere else?

Thanks,
–mark