Ok
My question is not correct i think.
Here is the code that saves the process instance.
Am i correct when the context is closed the processInstance is removed from the
database.
And if i do not want that.
I want to keep track of my processInstances. How do i do that?
So the second time around when this code is executed i want to have a
processInstance id of 2.
bpmContext context1 = null;
try
{
ProcessDefinition pd =
ProcessDefinition.parseXmlResource("FileSplitter.par/processdefinition.xml");
context1 = this.jbpmConfiguration.createJbpmContext();
ProcessInstance instance = new ProcessInstance(pd);
context1.deployProcessDefinition(pd);
instance.getContextInstance().setVariable(Constants.IS_PROCESSING_FILE,f);
context1.save(instance);
instance.signal();
context1.save(instance);
} catch (Exception e)
{
e.printStackTrace();
}finally {
context1.close();
}
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3947934#3947934
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3947934
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user