How can I get taskId from processId?

How can I get taskId from processId? I have published the process model as a web service, which returns me a process id. I want to get a taskid, so that I can make use of task id to start the embedded html.

OriginalPostID-187492

OriginalPostID-187492

  Discussion posts and replies are publicly visible