jsonObject.write(writer);
}
@RequestMapping(value = "/console/monitor/(*:processStatus)/process/activity/view/(*:id)")
public String consoleMonitorActivityView(ModelMap map, @RequestParam("processStatus") String processStatus, @RequestParam("id") String activityId) {
WorkflowActivity wflowActivity = workflowManager.getActivityById(activityId);
Collection<WorkflowVariable> variableList = workflowManager.getActivityVariableList(activityId);
double serviceLevelMonitor = workflowManager.getServiceLevelMonitorForRunningActivity(activityId);
WorkflowActivity trackWflowActivity = workflowManager.getRunningActivityInfo(activityId);
map.addAttribute("activity", wflowActivity);
map.addAttribute("variableList", variableList);
map.addAttribute("serviceLevelMonitor", WorkflowUtil.getServiceLevelIndicator(serviceLevelMonitor));
if (trackWflowActivity != null) {
map.addAttribute("trackWflowActivity", trackWflowActivity);
String[] assignmentUsers = trackWflowActivity.getAssignmentUsers();
if (assignmentUsers != null && assignmentUsers.length > 0) {
map.addAttribute("assignUserSize", assignmentUsers.length);
}
}