[jboss-user] [JBoss jBPM] - Re: removeTaskInstance doesn't work!

2007-01-23 Thread MindTheGap2
Yep | Hibernate: select processdef0_.ID_ ... | Hibernate: insert into JBPM_TOKEN ... | Hibernate: insert into JBPM_PROCESSINSTANCE ... | Hibernate: select definition0_.PROCESSDEFINITION_ ... | Hibernate: select events0_.PROCESSDEFINITION_ ... | Hibernate: select startstate0_.ID_ ...

[jboss-user] [JBoss jBPM] - Re: removeTaskInstance doesn't work!

2007-01-22 Thread MindTheGap2
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();

[jboss-user] [JBoss jBPM] - Re: removeTaskInstance doesn't work!

2007-01-19 Thread MindTheGap2
Sorry, the real code is this: | public void removeStateProcessInstance(Integer keyRef, String processNname, String state) { | JbpmContext jc = jbpmConfiguration.createJbpmContext(); | TaskMgmtSession tms = jc.getTaskMgmtSession(); | try { |

[jboss-user] [JBoss jBPM] - Task Instance deletion failed due to constraint violation

2007-01-19 Thread MindTheGap2
Method removeTaskInstance fail becausa a constraint violation. But if i delete processLogs it seems to work. RQ_ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4003923#4003923 Reply to the post :

[jboss-user] [JBoss jBPM] - Re: removeTaskInstance doesn't work!

2007-01-19 Thread MindTheGap2
I Ronald, If i delete the specific row in jbpm_logs then i can delete the taskInstance. Id like to give to the user the possibility of making undo. Can Process logs be used to implement the undo? Thanks! View the original post :

[jboss-user] [JBoss jBPM] - Re: removeTaskInstance doesn't work!

2007-01-19 Thread MindTheGap2
No exceptions :( The code i show to you runs perfectly and in debug i inspect the return of getTaskInstances method and the taskInstances are removed...but after closing the context my db remains the same!! :) Ok, im going to read the documentation. But btw the best way to implementing undo is

[jboss-user] [JBoss jBPM] - removeTaskInstance doesn't work!

2007-01-17 Thread MindTheGap2
Hi, I need in my code to remove some TaskInstances. I have: | static JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance(); | | public void removeTI(TaskInstance SomeTaskInstance) { | JbpmContext jc = jbpmConfiguration.createJbpmContext(); |

[jboss-user] [JBoss jBPM] - Change Db location problem!

2006-10-11 Thread MindTheGap2
Hi I have jBPM working in a db named 'jbpm'. But this week i need to change the db location to 'xMind' that already have another tables. Here's my action sequence: 1. Changed in config-files folder the file hibernate.cfg.xml 2. Changed in config-files folder the hibernate.properties 3. Changed