Trigger Intermediate Message Event
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2014 05:58 AM
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
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
Labels:
- Labels:
-
Archive
mesgEvent.txt.zip
2 KB
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2014 10:40 AM
Can you create a unit test showing the issue? This makes it easier for us to reproduce the issue.
Thanks,
Thanks,
