take a look here to get some ideas on how to abstract access to different types of task client. In general make use of org.jbpm.task.TaskService interface to hide the complexity of creating different task clients.
HTH
Reply to this message by going to Community
Start a new discussion in jBPM at Community