ass.setPriority(new Short(activity.priority()).toString());
ass.setProcessId(process.key());
ass.setProcessName(process.name());
ass.setProcessVersion(manager.version());
ass.setProcessDefId(manager.name());
WorkflowActivity wfActivity = getRunningActivityInfo(activity.key());
ass.setDateCreated(wfActivity.getCreatedTime());
ass.setDueDate(wfActivity.getDue());
// check for hash variable
if (WorkflowUtil.containsHashVariable(ass.getActivityName())) {