Thanks Maciej.
One more question in this regard.
When i start a process, which as a user task, using startProcess, i could see the task being assigned to the specified user or group depending on the assignment which i have provided in the user task properties. I could also see the process in thr process overview list. However i am not able to see any process instance pertaining to that process. Is there anything i am missign here?
PS: When i start any process instance from jbpm-console i am able to see the process instance in the process instance list. But when i start a process, i am not able to see any process instance.