For this you have to use serviceTask. Write your code in customWorkIteamHandler to populate pojo from JSON response from REST task which you have stored in process variable
Thanks for replying ....
Would you be able to share a simple jBPM PoC with all types of tasks like service task, human task, rule task, script task etc. ? It will help me a lot in what I am trying to do with jBPM 6.4. Appreciate your help with this.