cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger Intermediate Message Event

sai576
Champ on-the-rise
Champ on-the-rise
Hi,
    I am using intermediate message event in my workflow.Check the my sample workflow below attachment.Now my problem was i am trying to trigger the message event subscription through

Execution messageExecution = runtimeService.createExecutionQuery().messageEventSubscriptionName("interRef").singleResult();
runtimeService.messageEventReceived("interRef",messageExecution.getId());

in service Task but it throws NullPointerException. What i understood correctly after completion of service task only 'intermediate message event("interRef")' will come into the act_ru_event_subscr so then only it will trigger.so from where i need to trigger this in my workflow.

Thanks & Regards
Sai Kumar R

























http://www.getaheadofthegames.com/best-match-3-games
1 REPLY 1

trademak
Star Contributor
Star Contributor
Can you create a unit test showing the issue? This makes it easier for us to reproduce the issue.

Thanks,