Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.DefaultProcessData


        resId = formPars[i].id();
        continue;
    }
      }

      ProcessData data = new DefaultProcessData();
      Vector w  = (Vector)
    (XmlRpcCall.rpc
     (serverUrl, "scm.getAttributeValues", new Object[]
         { issueId, attribute
         } ));
      if(w.size()>0) {
    for(int i = 0; i<w.size();i++) {
        data.put(resId, w.elementAt(i));
    }
      } else {
    data.put(resId,"-")
      }
      result.set (data);
  } finally {
      if (logger.isDebugEnabled()) {
    logger.debug ("Finished invocation of " + activity.uniqueKey());
View Full Code Here


        resId = formPars[i].id();
        continue;
    }
      }

      ProcessData data = new DefaultProcessData();
      Vector w = (Vector)
    (XmlRpcCall.rpc
     (serverUrl, "scm.setAttributeValues", new Object[]
         { issueId, attName,attValue,userName
         } ));
View Full Code Here

  try {
      String userName = (String)map.get(formPars[0].id());
      String roleName = (String)map.get(formPars[1].id());
      String moduleName = (String)map.get(formPars[2].id());

      ProcessData data = new DefaultProcessData();
      Vector w  = (Vector)
    (XmlRpcCall.rpc(serverUrl, "scm.setRole", new Object[]
        { userName,roleName,moduleName
        } ));
      for(int i = 0; i < w.size();i++){
    data.put(result, w.elementAt(i));
      }
      result.set (data);
  } finally {
      if (logger.isDebugEnabled()) {
    logger.debug ("Finished invocation of " + activity.uniqueKey());
View Full Code Here

        resId = formPars[i].id();
        continue;
    }
      }

      ProcessData data = new DefaultProcessData();
      Vector w  = (Vector)
    (XmlRpcCall.rpc
     (serverUrl, "scm.getModule", new Object[]
         { issueId
         } ));
      for(int i = 0; i < w.size();i++) {
    data.put(resId,w.elementAt(i));
      }
      result.set (data);
  } finally {
      if (logger.isDebugEnabled()) {
    logger.debug ("Finished invocation of " + activity.uniqueKey());
View Full Code Here

        resId = formPars[i].id();
        continue;
    }
      }

      ProcessData data = new DefaultProcessData();
      Vector w = (Vector)
    (XmlRpcCall.rpc
     (serverUrl, "scm.copyIssue", new Object[] {
         issueId,moduleName,issueType,userName, reason,action
     }));
      for(int i = 0; i < w.size();i++) {
    data.put(resId,w.elementAt(i));
      }
      result.set (data);
  } finally {
      if (logger.isDebugEnabled()) {
    logger.debug ("Finished invocation of " + activity.uniqueKey());
View Full Code Here

      logger.debug
    (activity + " found message "
     + CollectionsUtil.toString(recvd) + " on channel " + channel);
  }
  try {
      activity.setResult (new DefaultProcessData (recvd));
      activity.complete ();
  } catch (CannotCompleteException e) {
      logger.error
    (activity + " receiving from channel "
     + "but cannot be completed?!: " + e.getMessage (), e);
View Full Code Here

        resId = formPars[i].id();
        continue;
    }
      }

      ProcessData data = new DefaultProcessData();
      Vector w  = (Vector)
    (XmlRpcCall.rpc(serverUrl, "scm.getEmail", new Object[]
        { userName
        } ));
      for(int i = 0; i < w.size(); i++){
    data.put(resId,w.elementAt(i));
      }
      result.set (data);
  } finally {
      if (logger.isDebugEnabled()) {
    logger.debug ("Finished invocation of " + activity.uniqueKey());
View Full Code Here

      String fromIssueId = (String)map.get(formPars[0].id());
      String userName = (String)map.get(formPars[1].id());
      String toIssueId = (String)map.get(formPars[2].id());
      String depType = (String)map.get(formPars[3].id());

      ProcessData data = new DefaultProcessData();
      Vector w = (Vector)
    (XmlRpcCall.rpc
     (serverUrl, "scm.setDependency", new Object[]
         { fromIssueId, toIssueId,userName,depType
         } ));
View Full Code Here

    /**
     * @return
     */
    private ProcessData addComment
  (String fromIssueId, String userName, String comment) {
  ProcessData data = new DefaultProcessData();       
  Vector w = (Vector)
      (XmlRpcCall.rpc(serverUrl, "scm.addComment", new Object[]
    { fromIssueId, userName, comment
    } ));
  return data;     
View Full Code Here

        resId = formPars[i].id();
        continue;
    }
      }

      ProcessData data = new DefaultProcessData();
      Vector w = (Vector)
    (XmlRpcCall.rpc
     (serverUrl, "scm.getAssignedUser", new Object[] {
         moduleName
     } ));
       
      String res = " ";
      for(int i = 0; i<w.size();i++) {
    res= res + "," + w.elementAt(i);
      }
      data.put(resId,res);
      result.set (data);
  } finally {
      if (logger.isDebugEnabled()) {
    logger.debug ("Finished invocation of " + activity.uniqueKey());
      }
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.api.DefaultProcessData

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.