/* Event API ****************************************************/
public Object[] doSendEvent(int wfid, String event, String username,
String password) throws RemoteException {
Logger.DEBUG("SOAPSWAMP: doSendEvent(): " + wfid + ", " + event);
ResultList hist = new ResultList();
ArrayList results = new ArrayList();
try {
authenticate(username, password);
Event e = new Event(event, 0, wfid);
eventApi.sendEvent(e, username, hist);
} catch (Exception e) {
throw new RemoteException(e.getMessage());
}
// serialize the results to strings:
for (Iterator it = hist.getResults().iterator(); it.hasNext(); ){
ResultItem item = (ResultItem) it.next();
results.add(item.toString());
}
return results.toArray();
}