WorkflowManager workflowManager = (WorkflowManager) WorkflowUtil.getApplicationContext().getBean("workflowManager");
PagedList<WorkflowAssignment> assignmentList = workflowManager.getAssignmentPendingAndAcceptedList(packageId, processDefId, null, param.getSort(), param.getDesc(), param.getStart(), param.getSize());
DirectoryManager directoryManager = (DirectoryManager) AppUtil.getApplicationContext().getBean("directoryManager");
WorkflowUserManager workflowUserManager = (WorkflowUserManager) AppUtil.getApplicationContext().getBean("workflowUserManager");
User user = directoryManager.getUserByUsername(workflowUserManager.getCurrentUsername());
String gmt = "";
if (user != null) {
gmt = user.getTimeZone();
}
String format = AppUtil.getAppDateFormat();
for (WorkflowAssignment assignment : assignmentList) {
Map data = new HashMap();
data.put("processId", assignment.getProcessId());