[jboss-user] [JBoss jBPM] - Re: Persistance
    maxip 
    do-not-reply at jboss.com
       
    Tue Aug  1 08:06:03 EDT 2006
    
    
  
it only works if i deploy the processdefinition at the same time:
JbpmConfiguration.getInstance().createSchema();
  | 		JbpmContext jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
  | 		
  | 		try { 
  | 			GraphSession graphSession = jbpmContext.getGraphSession();
  | 			
  | 			deployProcessDefinition(graphSession); // ************
  | 			
  | 			findAllProcessDefinitions(graphSession);
  | 			
  | 			
  | 			ProcessDefinition processDefinition = findProcessDefinitionsFromServer("SimpleDefinition1", graphSession);
  | 			System.out.println(processDefinition.getId());
  | 		}
  | 		finally {
  | 			jbpmContext.close();
  | 		}
  | 	}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962132#3962132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962132
    
    
More information about the jboss-user
mailing list