Hi Balaji Subramaniam,
About getting process definition from guvnor, you can see how JBPM Console server do it in
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-gwt/jbpm-gwt-core/src/main/java/org/jbpm/integration/console/kbase/DefaultKnowledgeBaseManager.java
They have a utility to connect to guvnor
https://github.com/droolsjbpm/jbpm/blob/master/jbpm-gwt/jbpm-gwt-shared/src/main/java/org/jbpm/integration/console/shared/GuvnorConnectionUtils.java
Basically the idea is to build a knowledge agent that has all process definition from guvnor, then create a knowledge base using that knowledge agent
Regards,
Thomas Setiabudi