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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...