Thanks Mauricio..
I have another question like in my program whenver I am adding a new task, a new instance of process is created for each task in same session. As we are calling fireAllRules with ksession, so I want to know how it will manage relationship between rules and all instances of processess.