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