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

2007-12-20 Thread dleerob
I have the same problem where my removeTaskInstance isnt actually saving the changes to the db. My task instance still exists after calling that method. anonymous wrote : Method removeTaskInstance fail becausa a constraint violation. | But if i delete processLogs it seems to work. | |

[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-22 Thread kukeltje
do you see sql statements at all? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4004870#4004870 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4004870 ___ jboss-user mailing list

[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] - Re: removeTaskInstance doesn't work!

2007-01-19 Thread kukeltje
don't see anything wrong with that at first site. Are you sure anthing 'should' be removed.? Do you see in the debug of jbpm that anything is being tried to be removed? And btw, why do you want to remove taskinstances from the db? View the original 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 kukeltje
Aren't there any exceptions then? Like fk contraint violations??? And yes, using the logs is one of the things to use when implementing undo. See jbpm 2.0 on how that was done and look at the jira for some undo info 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] - Re: removeTaskInstance doesn't work!

2007-01-19 Thread kukeltje
using the processlogs plays an important role for sure, but there is more to it (details unknown to me) If you turn on hibernate sql showing, do you see statements that they are removed? Other things I'm thinking of are: transaction not committed, hibernate config to fail silently if there are