}
public void suspendTask(String taskId) {
TaskInstance taskInstance=createTaskQuery().taskId(taskId).singleResult();
taskInstance.suspend();
saveTask(taskInstance);
}
public TaskQuery createTaskQuery() {
return ProcessObjectFactory.FACTORYINSTANCE.createTaskQuery(commandExecutor);