AnsweredAssumed Answered

Execution not found

Question asked by imamchishty on Apr 10, 2012
Latest reply on Apr 24, 2012 by blezek
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.

Outcomes