Hi!
After turning on the show sql parameter i saw that no DELETE statement appears
in my console.
So i do this test case that is OK and continues to not show any DELETE
jbpm.TASKINSTANCE...:
| public void testToken() {
| JbpmContext jc = jbpmConfiguration.createJbpmContext();
| TaskMgmtSession tms = jc.getTaskMgmtSession();
| try {
| GraphSession gs = jc.getGraphSession();
| ProcessDefinition pd =
gs.findLatestProcessDefinition("XXX");
| ProcessInstance pi = new ProcessInstance(pd);
|
| Token token = pi.getRootToken();
| assertEquals("INIT", token.getNode().getName());
| pi.signal();
| assertEquals("REG", token.getNode().getName());
| pi.signal();
| assertEquals("PRO", token.getNode().getName());
|
| //remove logs ( a despaired try :)))
| LoggingInstance li = pi.getLoggingInstance();
| List x= li.getLogs();
| x.removeAll(x);
|
| TaskInstance tit = (TaskInstance)
tms.findTaskInstancesByToken(token.getId()).get(0);
| assertEquals("REG", tit.getName());
| pi.getTaskMgmtInstance().removeTaskInstance(tit);
|
| jc.save(pi);
| }catch (Exception e) {
| System.out.println("no catch enter :(");
| } finally {
| jc.close();
| }
| }
|
Any idea?
Thanks in advance
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004793#4004793
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004793
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user