[jboss-user] [JBoss jBPM] - process upload with tomahawk

ricardomarques do-not-reply at jboss.com
Wed Jun 27 06:25:37 EDT 2007


Hi 

i'm try to upload a process to the jbpm engine, using file upload from tomahawk  library, but i having this exception:


  | 
  | Caused by: org.jbpm.JbpmException: process definition does not have a name
  |         at org.jbpm.db.GraphSession.deployProcessDefinition(GraphSession.java:80)
  |         at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
  |         at com.pep.workflow.server.command.DeployProcessCommand.execute(DeployProcessCommand.java:30)
  |         at com.pep.workflow.server.beans.command.CommandService.execute(CommandService.java:64)
  |         ... 55 more
  | 
  | 
  | 

I'm using this code to the deployment:


  | public Object execute(JbpmContext jbpmContext) throws Exception {
  |         
  |         if (this.inputStream == null)
  |             throw new NotSetWorkflowException("required attribute not set!");
  |         
  |         ProcessDefinition pf = new ProcessDefinition();
  |         pf.parseParZipInputStream(this.inputStream);
  |         
  |         jbpmContext.deployProcessDefinition(pf);
  |         
  |         return pf;
  |     }
  | 
  | ...
  | 
  | InputStream zip = this.uploadedFile.getInputStream();
  |             
  |             Command cmd = new DeployProcessCommand(zip);
  |             Object result = execute(cmd);
  | 
  | ...
  | 

When I run the debugger I get the process definition without the properties set, after the parsing. 

Any idea?


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

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



More information about the jboss-user mailing list