@Path("next")
@GET
public List<ActivityDTO> findNextActivities(
@QueryParam("processDefinitionId") String processDefinitionId,
@QueryParam("activityId") String activityId) {
FindNextActivitiesCmd cmd = new FindNextActivitiesCmd(
processDefinitionId, activityId);
return convertActivityDtos(processEngine.getManagementService()
.executeCommand(cmd));
}