# Signal Catch Event (Intermediate) is not resumed from runtimeservice

**URL:** <https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940>\
**Category:** Flowable Engine\
**Created:** [November 24, 2018, 2:26am UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940 "2018-11-24T02:26:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bghayad](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bghayad](https://forum.flowable.org/u/bghayad)\
**Post date:** [November 24, 2018, 2:26am UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/1 "2018-11-24T02:26:55Z")

</div>

Hello;

I need help in SignaI Catch Event (Intermediate), the workflow is reaching at it and stop (and this is correct and what I need), but I am trying to trigger it (I need the workflow to resume) using the below code (and I am running this code from java class that is called by `user task`):

`ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalMobileDisc");`  
Note: SignalMobileDisc is the name of the signal and not the id.

But it is not resuming, but I am able to make it resume by using signalthrowingevent. So why I can not resume it using the above code?  
By the way, I configured the signal to be global signal so it should be able to receive from other process using the above code. But why nothing is happen?

I tried to resume it using the below code:

`ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalMobileDisc", "307105");`

Where 317509 is the execution id, but it was giving me the following:  
`Execution 317509 has not subscribed to a signal event with name 'SignalMobileDisc'`

It is important really to be able to resume the Signal Catch Event (intermediate) from javacode because this will help a lot.

Do I have miss understanding in something?

Regards  
Bilal

---

<div class="post-metadata">

**Author:** ![bghayad](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bghayad](https://forum.flowable.org/u/bghayad)\
**Post date:** [November 24, 2018, 7:02pm UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/2 "2018-11-24T19:02:23Z")

</div>

Hello;

Could be the reason for the problem that I am using `ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalMobileDisc");` within process and it should be only used for integration (from outside software that call java class which will run this code)?

In other words: this to be used by API and not from process?

Regards  
Bilal

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [November 26, 2018, 7:03am UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/3 "2018-11-26T07:03:54Z")

</div>

Hi Bilal,

I would say that process instance is not subscribed to the signal. There are plenty of tests which are catching and throwing signals in the flowable source. e.g [https://github.com/flowable/flowable-engine/blob/a8a0fc69fb1e0bcacfa8644cb2bcffd8977a5b59/modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/signal/SignalEventTest.java#L43](https://github.com/flowable/flowable-engine/blob/a8a0fc69fb1e0bcacfa8644cb2bcffd8977a5b59/modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/signal/SignalEventTest.java#L43)  
You can check whether process instance is subscribed to the signal.  
I do not see any problem to call runtime service from the running process. (You have to be aware of transaction boundaries in that case).  
There is also message throwing event process step which throws signal you need.

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![bghayad](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@bghayad](https://forum.flowable.org/u/bghayad)\
**Post date:** [December 1, 2018, 12:23am UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/4 "2018-12-01T00:23:43Z")

</div>

Hello @martin.grofcik  
Thank you for your kindly reply.  
The process instance is subscribed to the signal.  
The problem is happening if the workflow contains user task, then I can not trigger the Intermediate signal catch event by using `ProcessEngines.getDefaultProcessEngine().getRuntimeService().signalEventReceived("SignalMobileDisc");`

If the workflow is not containing user task, then it i possible to use the above code.  
One more thing: if I need to trigger the Intermediate Signal Catch Event by using Intermediate Throwing Event, then it is working even if the workflow is containing user task.

If this is not the case, please let me know.

Regards  
Bilal

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [December 3, 2018, 3:22pm UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/5 "2018-12-03T15:22:31Z")

</div>

Hi Bilal,

Could you create simple jUnit test for this case please?  
[https://www.flowable.org/docs/userguide/index.html#mavenArchetypes](https://www.flowable.org/docs/userguide/index.html#mavenArchetypes)

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![douglascrp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/douglascrp/32/306_2.png) [@douglascrp](https://forum.flowable.org/u/douglascrp)\
**Post date:** [March 13, 2020, 1:09am UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/6 "2020-03-13T01:09:59Z")

</div>

I am facing the same problem using Flowable 6.5.0

I am throwing the event signal by code, but it is not catch by the boundary catch event attached into an user task.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [March 14, 2020, 3:36pm UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/7 "2020-03-14T15:36:35Z")

</div>

Can you share your process xml + which method you’re calling (signalEventReceived?)

---

<div class="post-metadata">

**Author:** ![douglascrp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/douglascrp/32/306_2.png) [@douglascrp](https://forum.flowable.org/u/douglascrp)\
**Post date:** [April 3, 2020, 12:05pm UTC](https://forum.flowable.org/t/signal-catch-event-intermediate-is-not-resumed-from-runtimeservice/2940/8 "2020-04-03T12:05:27Z")

</div>

Sorry, but I gave up on that approach, and I created a different flow to achieve what I needed.  
I don’t have the sample process anymore.
