cancel
Showing results for 
Search instead for 
Did you mean: 

Execution not found

imamchishty
Champ in-the-making
Champ in-the-making
Hi guys,

I've created a receive task (and boundary) which sends out a jms message. The message contains the activityId and the processId. When the response message is received (well within the time) I use the runtimeService to first find the process instance. The process instance is found successfully and if I query the ACT_RU_EXECUTION table I can see the correct activity in wait mode. However when I try to get the appropriate execution to signal (ie. to notify that message received), I always get a null return execution (and the exception)

I use:

Execution ex = runtimeService.createExecutionQuery().processInstance(id).activityId("wait").singleResult();

I'm perplexed as to why this isn't found. Any help would be great as I've been banging my head for a few hours now and not been able to resolve this critical task.
3 REPLIES 3

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
is it an activityId? or something else?

imamchishty
Champ in-the-making
Champ in-the-making
Yes it's an activity. The actual activity Id in the example is 'wait'. I've tested this using in memory with the same thread and it works. However the reality is that two threads would be involved, one sending the message and the second thread receiving the message and doing what was described in the previous post.

blezek
Champ on-the-rise
Champ on-the-rise
Hi,

  We've been having similar problems.  Our processes run correctly, but never seem to persist to ACT_RU_EXECUTION.  A similar query does gives zero results, and no errors that I can discover.  That table is always empty.  This behavior seems to be relatively new (upgraded from 5.8-5.9).

Any hints/help here?
-dan