eventData1 = ev.oldResourceKey();
eventData2 = ev.oldResourceName();
eventData3 = ev.newResourceKey();
eventData4 = ev.newResourceName();
} else if (event instanceof WfCreateProcessAuditEvent){
WfCreateProcessAuditEvent ev = (WfCreateProcessAuditEvent)event;
eventData1 = ev.pActivityKey();
eventData2 = ev.pProcessKey();
eventData3 = ev.pProcessName();
eventData4 = ev.pProcessMgrName();
eventData5 = ev.pProcessMgrVersion();
} else if (event instanceof WfDataAuditEvent){
eventData1 = Long.toString (recKey);
} else if (event instanceof WfStateAuditEvent){
WfStateAuditEvent ev = (WfStateAuditEvent)event;
eventData1 = ev.oldState();
eventData2 = ev.newState();
}
prepStmt.setString (offset++, eventData1);
prepStmt.setString (offset++, eventData2);
prepStmt.setString (offset++, eventData3);
prepStmt.setString (offset++, eventData4);