Thanks for the quick reply Esteban. Will look forward to your answers when I get stuck again. :)
BTW one more thing when I was running your examples I was getting a lot of output in the console like:
Before node entered...
After node exited...
etc.
Searched a lot but couldn't find any sysout statements that might be generating them. :| I made my own process in a seperate project and it did not show those output, only the desired ones.
Could you provide an explanation to this??
Thanks again.. :) :)