-
1. Re: JbpmException: couldn't delete timers for process instan
kukeltje Mar 14, 2008 10:48 AM (in response to jdriver)please use [ c o d e ] tags (without the spaces while posting
-
2. Re: JbpmException: couldn't delete timers for process instan
jdriver Mar 15, 2008 10:38 AM (in response to jdriver)I will make a note to use tags in the future. It chopped all the process flow xml from my previous post.
My main concern is that we have prototyped a flow and created the process flow definition in XML. It was a very simple flow with 4 nodes including start and end. It works fine if you call the Action Handler in the 2nd, 3rd, or 4th node. But if you try toi call the ActionHandler more than once in the flow, I get an exception onj the 2nd execution.
My quesiton is can you call the same Action Handler more than once in the process definition/instance? If so, what kinds of clean-up do I need to be sure to do? Do I need to clean up the executionContext? Close the JbpmContext?
The second execution seems to envcounter a lock on the token. Please explain and especially provide example code.
Thanks in advance! -
3. Re: JbpmException: couldn't delete timers for process instan
kukeltje Mar 16, 2008 8:21 AM (in response to jdriver)please.... you do not post any actionhandler code, processdefinition, how you use the engine or whatever, but expect *us* to provide some explanation or even example code. That is very hard and timeconsuming for us.
I do not want to offend you, but look at jbpm testcases. Lots of 'examples' in there, including using actionhandlers. -
4. Re: JbpmException: couldn't delete timers for process instan
jdriver Mar 16, 2008 9:15 AM (in response to jdriver)Yes, but will you please try to answer the question. You seem to regard yourself as an expert. The simple question was:
Can you run the same action handler twice within the same process instance execution?
This is a yes or no quesiton and involves no code samples.
I am somewhat offended by your remarks and that you have provided no useful information, and asked for no additional information. If there is an example code showing the same action handler being called twice by the same process instance I have not encountered this yet, but would like to know if such an example exists. I have spent considerable time on the documentation. If you cannot provide anything useful please occupy yourself in other ways instead of berating users who have asked reasnable questions. -
5. Re: JbpmException: couldn't delete timers for process instan
kukeltje Mar 16, 2008 11:01 AM (in response to jdriver)if that is the only question, then that seems totally unrelated to the topic and thus belong in a new one.
The yes/no what not the only thing you you asked (from my understanding) and thus not just what I anwserd.
Regarding you feeling offended, that is up to you. My experience is that in a lot of cases people (users) do something wrong in either the processdefinition or their actionhandlers. That is the reason I (indirectly) asked for more information *twice*. The reason I did this was to help *you* since I suspect (again from my experience as an 'expert' in this forum) that a simple yes or no would not suffice in your situation. What I could have told you (as I do in a lot of cases) was to just make a minimal unit test with embedded processdefinition and actionhandlers (as innerclasses) which demonstrates the problem. This would have been another way of formulating it, sorry that I did not do that.
Besides all this. I did provide useful information (in my very humble opinion) by referring to the testcases (which in our (not only mine, but the devs to) can and should be seen as part of the 'documentation'). If you had
I surely can occupy myself in other ways and preferably do so, but berating is high on my list. Cool btw using such a word... thankfully there is the internet to search for words hardly known to non-native English speakers.be-rate
tr.v. be-rat-ed, be-rat-ing, be-rates
To rebuke or scold angrily and at length.
Rebuke? Hmmm... maybe (but that is in the eye of the beholder) luckily I knew that word, otherwise I had to lookup an additional word
Angrily? hmm... no...a little irritated... maybe
At length? Certainly not....
Hint: http://catb.org/~esr/faqs/smart-questions.html (and please do not take it as an offence) -
6. Re: JbpmException: couldn't delete timers for process instan
kukeltje Mar 16, 2008 11:01 AM (in response to jdriver)Oh... and my answer would have been 'yes'... would that help you in any way?
-
7. Re: JbpmException: couldn't delete timers for process instan
jdriver Mar 18, 2008 3:32 PM (in response to jdriver)Thanks for the advice to look at the code examples in the test cases. This has been very helpful advice.