Package de.suse.swamp.core.util

Examples of de.suse.swamp.core.util.ResultList$ResultItem


    /* 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();
  }
View Full Code Here


    Logger.DEBUG("SOAPSWAMP: createWorkflow() ");
    try {
      authenticate(username, password);
      WorkflowTemplate templ = wfApi.getWorkflowTemplate(templateName, username);
      return wfApi.createWorkflowId(templateName, username, parentWfid,
          null, templ.getVersion(), true, new ResultList());
    } catch (Exception e) {
      throw new RemoteException(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of de.suse.swamp.core.util.ResultList$ResultItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.