Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.ProcessData


  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

        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

    }

    private ProcessData assignIssue
  (String issueId, String userName, String assignUserName,
   String attName, String resId) {
  ProcessData data = new DefaultProcessData();
  Vector w  = (Vector)
      (XmlRpcCall.rpc(serverUrl, "scm.assignIssue", new Object[]
    { issueId,userName,assignUserName,attName
    } ));
  for(int i = 0; i < w.size();i++){
      data.put(resId, w.elementAt(i));
      logger.debug ("Result is : " + data);
  }
  return data;     
    }
View Full Code Here

  String dataItemName = null;
  String dataItemValue = null;
        boolean waitForResponse = true;

  // Scan request params and store data values in a map for later use
        ProcessData sendData = new DefaultProcessData();
  for (Enumeration e = request.getParameterNames();
       e.hasMoreElements();) {
      String pn = (String)e.nextElement();
      if (pn.equals("WFM_packageID")) {
    packageID = request.getParameter(pn);
      } else if (pn.equals("WFM_processID")) {
    processID = request.getParameter(pn);
      } else if (pn.equals("WFM_dataItemName")) {
    dataItemName = request.getParameter(pn);
      } else if (pn.equals("WFM_dataItemValue")) {
    dataItemValue = request.getParameter(pn);
            } else if (pn.equals("WFM_waitForResponse")) {
                waitForResponse
                    = (new Boolean (request.getParameter(pn)).booleanValue());
      } else {
    sendData.put(pn, request.getParameter(pn));
      }
  }

  HttpSession session = request.getSession(true);
  if (logger.isDebugEnabled()) {
View Full Code Here

  }

  // Create new process
  Channel channel = null;
  try {
      ProcessData sendData = new DefaultProcessData();
      // Create new process
      ProcessLookup pl = lookupProcess
    (null, packageID, processID, sendData, null, null);
     
      // Build connection to process and start process
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.omgcore.ProcessData

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.