Hi rehankhan!
If this helps, you can checkout the eclipse project zipped up here which might get you going. It depends on reading a process/package from the Guvnor, but you could change the code to read the process from file or whatever.
Reply to this message by going to Community
Start a new discussion in jBPM at Community