-
1. Re: Transfer Process Instance id to Previous same Process de
crossleyjuan Oct 24, 2006 8:15 AM (in response to tom_sri74)just do the following:
JbpmContext ctx = conf.createJbpmContext();
GraphSession session = ctx.getGraphSession();
String processName = TheNameOfYourProcess;
ProcessDefinition defTest = session.findLatestProcessDefinition(processName);
session.deleteProcessDefinition(defTest.getId());
ctx.close();
and that's it.
Do not forget to replace the TheNameOfYourProcess for the name of your process. -
2. Re: Transfer Process Instance id to Previous same Process de
tom_sri74 Oct 24, 2006 8:49 AM (in response to tom_sri74)Thanks for your response.
I know how to delete the latest Process definition.
I need the solution only how to transfer process instance id from second version of Process Definition into first version of Process Definition.
For eg;
1)
Process defintion id - 1
version - 1
process instance id 1 to 10
2)
Process definition id - 2
version -2
process instance id 11 to 15
for above serial no 2. all process instance id (11 to 15) from process defintion id 2 transfer to process definition id 1 -
3. Re: Transfer Process Instance id to Previous same Process de
tom_sri74 Oct 25, 2006 12:28 AM (in response to tom_sri74)Hi dude!,
Any body can response the above solution!
Thanks