cancel
Showing results for 
Search instead for 
Did you mean: 

Process freezes after ReceiveTask

aleksej_domash
Champ in-the-making
Champ in-the-making
We created our process with receive task that waits for a signal.

Task1 - > Task2 -> Receive Task 3 -> Task4

Signal is generated in Camel Context. Event for signal generating we get from amq queue with JMS-transaction. In one moment we got the message from amq and restarted our Fuse Server Instance. Signal was generated but transaction was rollbacked and after instance restarting we had the message again.

So in Act_Hi_Actinst we have:
ACT_ID_   ACT_TYPE_   START_TIME_   END_TIME_   DURATION_
Task010   serviceTask   06.08.2013 12:13:22,282000   06.08.2013 12:13:22,306000   24
Task020   receiveTask   06.08.2013 12:13:22,307000   06.08.2013 12:13:34,149000   11842
exclusivegateway1   exclusiveGateway   06.08.2013 12:13:34,149000   06.08.2013 12:13:34,149000   0
Task020   receiveTask   06.08.2013 12:13:34,656000      <<<< this task doesn't have END_TIME

But in Act_Ru_Execution we have another act_id_ :
ACT_ID_   IS_ACTIVE_   CACHED_ENT_STATE_
TaskDPOP030   1   7

And this process stuck in that state. It doesn't have any jobs in act_ru_job. How can we deal with it ?





3 REPLIES 3

trademak
Star Contributor
Star Contributor
Based on this information it's not easy to understand the exact issue. Did you use a JTA transaction? Is the current ACT_RU_EXECUTION row pointing to Task4?

Best regards,

Sorry, I've tryied to explain process in general here
Task1 - > Task2 -> Receive Task 3 -> Task4

And in Tables, of course, we have other ACT_IDs (Task010, Task020, exclusivegateway1 and TaskDPOP030)

>>> Did you use a JTA transaction?
No, We have JPA tran manager for activiti and JmsTransactionManager for activemq.

>>>> Is the current ACT_RU_EXECUTION row pointing to Task4?
Yes, ACT_RU_EXECUTION row was pointing to Task4 (TaskDPOP030), when process stoped on Receive Task 3 (Task020). And in Act_Hi_Actinst we can see, that Receive Task 3 (Task020) was executed two times


The question is why process stoped ? We can't force it go to next task

trademak
Star Contributor
Star Contributor
Can you include the process definition? Is task 4 a service task?

Best regards,