As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
List<Comment> getTaskComments(String taskId) on TaskService.However, the api to delete a comment is not exposed. You'll need to add your own custom command to do this (I've answered this question already a few times here).
Hmm that is probably because the commenting uses the current user:try to do this:try { identityService.setAuthenticatedUserId("Joram"); … // your logic} finally { identityService.setAuthenticatedUserId(null);}
task.setDescription("this is a test");<br> task.setAssignee("kermit");<br> taskService.saveTask(task);<br>
taskService.setAssignee(task.getId(),"kermit");
<br>taskService.setAssignee(task.getId(),"kermit");<br> task.setDescription("this is a test");<br> taskService.saveTask(task);<br>
org.activiti.engine.ActivitiOptimisticLockingException: TaskEntity[401] was updated by another transaction concurrently