//@PersistenceUnit(unitName = "org.jbpm.domain")
private EntityManagerFactory emf;
public List<ActiveNodeInfo> getActiveNodeInfo(String instanceId) {
AuditLogService auditLogService = new JPAAuditLogService(emf);
ProcessInstanceLog processInstance = auditLogService.findProcessInstance(new Long(instanceId));
if (processInstance == null) {
throw new IllegalArgumentException("Could not find process instance " + instanceId);
}
Map<String, NodeInstanceLog> nodeInstances = new HashMap<String, NodeInstanceLog>();
for (NodeInstanceLog nodeInstance: auditLogService.findNodeInstances(new Long(instanceId))) {