Thanks Maciej Swiderski and Esteban Aliverti for responding to my problem. I have solved the problem by setting
Result Mapping for the user task ( {Result=approvalStatus} ) , along with defining the process variable, for which I was not aware of earlier.
But now I have an another query, where in I am trying to execute my bpmn in a web application and I have followed the steps give in the following articles.
Article 1: http://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-example
Article 2: http://community.jboss.org/people/bpmn2user/blog/2011/04/03/jbpm5-human-task-api-usage-example
Desc: I have multiple user tasks in my bpmn , and after completing one user task it should go to the other user task and so on.
Problem : Once I run the code ( using all the configuration told in the article), the human task view shows the user task to first user as reserved,but after starting and completing it , the workflow ends and hence searching for tasks to other users shows nothing.
I tried the same using APIs also but the same problem comes.
Could you please suggest where I am wrong?
Regards,
Sandeep