[jboss-user] [JBoss jBPM] - Error on method performFinish in class NewProcessDefinitionW

pedroluppi do-not-reply at jboss.com
Sun Apr 13 22:22:39 EDT 2008


I have changed the methodo performFinish in class NewProcessDefinitionWizard like this:
	public boolean performFinish() {
  | 		try {
  | 			IFolder folder = page.getProcessFolder();
  | 			folder.create(true, true, null);
  | 			
  | 			IFile processDefinitionFile = folder.getFile("processdefinition.xml");
  | 			processDefinitionFile.create(createInitialProcessDefinition(), true, null);
  | 			
  | 			IFile gpdFile = folder.getFile("gpd.xml");
  | 			gpdFile.create(createInitialGpdInfo(), true, null);
  | 			
  | 			IFile abpmFile = folder.getFile("abpm.xml");
  | 			abpmFile.create(createInitialABPMInfo(), true, null);
  | 			
  | 			IDE.openEditor(getActivePage(), gpdFile);
  | 			openPropertiesView();
  | 			BasicNewResourceWizard.selectAndReveal(gpdFile, getActiveWorkbenchWindow());
  | 			return true;
  | 		} catch (CoreException e) {
  | 			e.printStackTrace();
  | 			return false;
  | 		}
  | 	}

	private ByteArrayInputStream createInitialABPMInfo() {
  | 		String parName = page.getProcessFolder().getName();
  | 		String processName = parName;
  | 		
  | 		StringBuffer buffer = new StringBuffer();
  | 		buffer.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
  | 		buffer.append("\n");
  | 		buffer.append("\n");
  | 		buffer.append("<process-definition\n" +
  | 				"  name=\"" + processName + "\">\n" +	
  | 				"</process-definition>");	
  | 		return new ByteArrayInputStream(buffer.toString().getBytes());
  | 	}

When I debug, no errors occours, but when I exported the project org.jbpm.gd.jpdl.ui like a jar and put the jar in eclipse plugin folder and, after that, I start the eclipse and try to create a new JBPM Project Process, I got the error: Plug-in org.jbpm.gd.jpdl.ui was unable to load class org.jbpm.ui.wizard.NewProcessDefinitionWizard

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143757#4143757

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143757



More information about the jboss-user mailing list