Miloud Haimoune [
https://community.jboss.org/people/milhaim] created the discussion
"Re: Timer triggered more than it should after an exception (infinite loop some
times)."
To view the discussion, visit:
https://community.jboss.org/message/741803#741803
--------------------------------------------------------------
Hi Maciej,
Many thanks for your help , I was trying to upgrade to jbpm 5.3 but I got some issues
(hibernate with postgres).
For this issue :
- I'm throwing an exception from the rule just for test (this issue could happen in
real life) and I understand I should not throw exceptions from rules.
- In step 1 in the process definition a have this script action:
System.out.println("PROCESS step 1 "+kcontext.getProcessInstance()... I have
this log trace many times in 60 second (timer period) and some times it does not stop(I
should have only one).
Here some logs :
2012-06-14 *16:28:49,812* INFO [STDOUT] (pool-16-thread-1) PROCESS *step 1*
Workflow*ProcessInstance6* [processId=LoopBug,state=1] : after timer triggered : 3
2012-06-14 16:28:49,814 INFO [STDOUT] (pool-16-thread-1) Fire all rules for process
instance: 6
2012-06-14 16:28:49,819 INFO [STDOUT] (pool-16-thread-1) PROCESS Step 2: after rules
validated :
2012-06-14 16:28:49,834 INFO [STDOUT] (pool-16-thread-1) PROCESS step 1
WorkflowProcessInstance11 [processId=LoopBug,state=1] : after timer triggered : 4
2012-06-14 16:28:49,836 INFO [STDOUT] (pool-16-thread-1) Fire all rules for process
instance: 11
2012-06-14 16:28:49,840 INFO [STDOUT] (pool-16-thread-1) PROCESS Step 2: after rules
validated :
2012-06-14 16:28:49,855 INFO [STDOUT] (pool-16-thread-1) PROCESS step 1
WorkflowProcessInstance16 [processId=LoopBug,state=1] : after timer triggered : 4
2012-06-14 16:28:49,857 INFO [STDOUT] (pool-16-thread-1) Fire all rules for process
instance: 16
2012-06-14 16:28:49,861 INFO [STDOUT] (pool-16-thread-1) PROCESS Step 2: after rules
validated :
2012-06-14 16:28:49,875 INFO [STDOUT] (pool-16-thread-1) PROCESS step 1
WorkflowProcessInstance1 [processId=LoopBug,state=1] : after timer triggered : 6
2012-06-14 16:28:49,878 INFO [STDOUT] (pool-16-thread-1) Fire all rules for process
instance: 1
2012-06-14 16:28:49,883 INFO [STDOUT] (pool-16-thread-1) PROCESS Step 2: after rules
validated :
2012-06-14 *16:28:49,896* INFO [STDOUT] (pool-16-thread-1) PROCESS *step 1*
Workflow*ProcessInstance6* [processId=LoopBug,state=1] : after timer triggered : 4
2012-06-14 16:28:49,899 INFO [STDOUT] (pool-16-thread-1) Fire all rules for process
instance: 6
2012-06-14 16:28:49,903 INFO [STDOUT] (pool-16-thread-1) PROCESS Step 2: after rules
validated :
2012-06-14 16:28:49,915 INFO [STDOUT] (pool-16-thread-1) PROCESS step 1
WorkflowProcessInstance11 [processId=LoopBug,state=1] : after timer triggered : 5
2012-06-14 16:28:49,918 INFO [STDOUT] (pool-16-thread-1) Fire all rules for process
instance: 11
2012-06-14 16:28:49,922 INFO [STDOUT] (pool-16-thread-1) PROCESS Step 2: after rules
validated :
2012-06-14 16:28:49,936 INFO [STDOUT] (pool-16-thread-1) PROCESS step 1
WorkflowProcessInstance16 [processId=LoopBug,state=1] : after timer triggered : 5
2012-06-14 16:28:49,940 INFO [STDOUT] (pool-16-thre
step 1 is executed 30 time for each process instance in less than 2 seconds.
The complite log file (end of the file)
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/741803#741803]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]