I am developing my application over flowable, sometimes it happens my process didn’t get complete at one go and user have to wait for a while and come again to continue the process,
while history of that incomplete process is saved in ACT_RU_VARIABLE,
whenever user comes again and want to continue the process from the point where he left, how can I continue (to say restart ) or assign the same process Instance to the user.
No, the code I put is creating a query to search for processes for the given userId, not creating new process instances. You can filter more and ask for process that are not completed, and so on.
Normally processes stop on a wait_state, usually on a user task that the user would have to complete. You could query for tasks of the user, please refer to User guide getting started