Assign a Task to Group with bonita API

I have task created and immediately Assigned to a group…

Later I have requirement to Assign to different Group … Can any one help…

I got a method to Assign to user
processAPI.assignUserTask(ActivtyID ,UserId);

similarly Need method for Assiging to group through java API