 
					
				
		
05-05-2011 06:44 AM
 
					
				
		
05-06-2011 11:41 AM
05-09-2011 05:29 AM
 
					
				
		
09-16-2011 12:59 PM
09-25-2011 07:03 AM
09-25-2011 05:53 PM
09-27-2011 09:28 AM
 /**
  * @param args
  */
 public static void main(String[] args) {
  try {
   // Create file
   FileWriter fstream = new FileWriter("out.txt");
   BufferedWriter out = new BufferedWriter(fstream);
   // Close the output stream
   out.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
     + "<definitions id=\"definitions\""
     + " xmlns=\"http://www.omg.org/spec/BPMN/20100524/MODEL\""
     + " xmlns:activiti=\"http://activiti.org/bpmn\""
     + " targetNamespace=\"Examples\">"
     + " \n<process id=\"bigProcessBigFile\""
     + "  name=\"Big process in big file\">"
     + " \n <startEvent id=\"startEvent\" name=\"StartProcess\" />");
   int numOfServiceCalls = 1000;
   for (int i = 1; i < numOfServiceCalls; i++) {
    out.write(" \n <serviceTask id=\"javaServiceDoNothingLotOfTimes"
      + i
      + "\" name=\"Read voltage\""
      + " activiti:class=\"com.bigcompany.wfe.activiti.delegate.ServiceDelegate\">"
      + "\n"
      + " \t<extensionElements> "
      + "\n"
      + " \t\t<activiti:field name=\"serviceName\">"
      + "\n"
      + " \t\t<activiti:string>DO_NOTHING_LOT_OF_TIMES</activiti:string>"
      + "\n" + "\t\t </activiti:field> " + "\n"
      + "\t</extensionElements> " + "\n\n" + "\t</serviceTask>"
      + "\n");
    String sourceRef = "javaServiceDoNothingLotOfTimes" + i;
    String targetRef = "javaServiceDoNothingLotOfTimes" + (i + 1);
    if (i == 1) {
     out.write("\t<sequenceFlow targetRef=\"" + sourceRef
       + "\" sourceRef=\"startEvent\"/>" + "\n");
    }
    if (i == numOfServiceCalls - 1) {
     targetRef = "endEvent";
    }
    out.write("\t<sequenceFlow targetRef=\"" + targetRef
      + "\" sourceRef=\"" + sourceRef + "\"/>" + "\n");
   }
   out.write("<endEvent id=\"endEvent\"/></process></definitions>");
   out.close();
  } catch (Exception e) {// Catch exception if any
   System.err.println("Error: " + e.getMessage());
  }
 }
With 1000 nodes I get an java.util.EmptyStackException at org.activiti.engine.impl.context.Context.removeExecutionContext(Context.java:73)09-27-2011 11:50 AM
09-28-2011 09:21 AM
09-28-2011 09:42 AM
 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.