Here in this case I meant if I write a java class where I define my processdefinition as
ProcessDefinition processDefinition = ProsessDefinition.parseXmlString "........"(xml representation of processdefinition goes here)
followed with all the required classes etc.
In eclipse I can run it to see that its transitioning from one node to another but If I want to see it in Browser is it possible??? (I mean to say Graphical representation where I can see these tranisitions)
No, you can't sorry. The image is created by the GPD and included in the process archive. Some servlet does a nice job overlaying the tokens.