- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {Gson g =
new Gson()
GsonBuilder gsonBuilder;gsonBuilder.create()
new GsonBuilder().create()
- Smart code suggestions by Codota
}
public TaskInstance getTaskByWorkItemId(long workItemId) { UserTaskInstanceDesc userTaskDesc = runtimeDataService.getTaskByWorkItemId(workItemId); if (userTaskDesc == null) { throw new TaskNotFoundException("No task found with work item id " + workItemId); } return convertToTask(userTaskDesc); }
public TaskInstance getTaskById(long taskId) { UserTaskInstanceDesc userTaskDesc = runtimeDataService.getTaskById(taskId); if (userTaskDesc == null) { throw new TaskNotFoundException("No task found with id " + taskId); } return convertToTask(userTaskDesc); }
throw new TaskNotFoundException("No task with id " + taskId + " found");
Task task = userTaskService.getTask(containerId, taskId.longValue()); if (task == null) { throw new TaskNotFoundException("No task found with id " + taskId);