Well it seems like when I create the process definition by parsing the xml
definition everything works fine.
What I was trying to do was programmatically create my process definition. By
creating a new process definition object and adding nodes and transitions to it.
Note that in both scenarios
Actually I am closing the context, here is the full code :
JbpmContext jbpmContext = s_jbpmConfiguration.createJbpmContext();
try
{
ProcessDefinition definition =
jbpmContext.getGraphSession().getProcessDefinition(Long.parseLong(instanceTO.getTemplateId()));
ProcessInstance instance = new Process
I have jbpm set up using the in memory HSQL DB. I have written a simple unit
test creating process variables on the context instance loke so :
ProcessDefinition definition =
jbpmContext.getGraphSession().getProcessDefinition(Long.parseLong(instanceTO.getTemplateId()));
ProcessInstance instance =