Did you look in the database using the hsqldb manager?
yes i recently looked up and i found the definitions there
the ones i deployed with my class and the ones i deployed using the designer
so it uses the DB
graphSession.findAllProcessDefinitions(); returns an empty list :/
Remove JbpmConfiguration.getInstance().createSchema().
You only need to do that once and not every time.
But when i remove this line i get an error /exception:
15:14:50,812 [main] ERROR JDBCExceptionReporter : Table not found in statement [select processdef0_.ID_ as ID1_4_, processdef0_.NAME_ as NAME2_4_, processdef0_.VERSION_ as VERSION3_4_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN4_4_, processdef0_.STARTSTATE_ as STARTSTATE5_4_ from JBPM_PROCESSDEFINITION processdef0_ order by processdef0_.NAME_, processdef0_.VERSION_ desc]
org.hibernate.exception.SQLGrammarException: could not execute query
hm i dont know whats going on here but i deployed the definitions under different names serveral times but there dont occur new entryies in the database
so i guess:
every time i start a class and create ja jbpm context a new one is created, the schema has to prepare the database and now i can work
but when i close all things are lost
i downt know how some things came into the database but actually there is absolutely no connection to the server
my programs run wheather my server is running or not