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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to