I have the following process definition…
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flowable="http://flowable.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.flowable.org/processdef">
<signal id="move-done_signal" name="Move Done" flowable:scope="global"></signal>
<signal id="pause_signal" name="Pause Deck Scan" flowable:scope="global"></signal>
<signal id="resume_signal" name="Resume Deck Scan" flowable:scope="global"></signal>
<signal id="cancel_signal" name="Cancel Deck Scan" flowable:scope="global"></signal>
<signal id="retry-move_signal" name="Retry Move" flowable:scope="global"></signal>
<signal id="abort_signal" name="Abort Deck Scan" flowable:scope="global"></signal>
<signal id="retry-read_signal" name="Retry Read" flowable:scope="global"></signal>
<signal id="no-retry" name="no-retry"></signal>
<process id="DeckScan" name="Deck Scan" isExecutable="true">
....[ a bunch of stuff]
<intermediateCatchEvent id="read_ready" name="Move Done">
<signalEventDefinition signalRef="move-done_signal"></signalEventDefinition>
</intermediateCatchEvent>
....[ a bunch more stuff]
</process>
</definitions>
My first service tasks executes the following:
runtimeService.signalEventReceived("move-done_signal");
However, the “read_ready” event catcher is not firing.
So in my service task, I added the following so I could debug this:
List<EventSubscription> subscriptions = runtimeService.createEventSubscriptionQuery().list();
… and the subscriptions list is empty. I was expecting 8 entries, one for each signal defined.
My question is why is the subscription list empty?
Thanks in advance for any help / suggestions.
Eric-