[jboss-user] [JBoss jBPM] - Re: context variables not being persisted

2008-03-12 Thread mabogunje
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

[jboss-user] [JBoss jBPM] - Re: context variables not being persisted

2008-03-10 Thread mabogunje
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

[jboss-user] [JBoss jBPM] - context variables not being persisted

2008-03-10 Thread mabogunje
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 =