05-23-2012 09:58 PM
runtimeService.signal(executionId);
is invoked the execution continues down the "Normal Path" and ends at it's end state.runtimeService.signal(executionId);
I call runtimeService.signalEventReceived("TheSignal");
(that's the signal ID specified on the Boundary Signal Event) when the execution was waiting at "Receive Task" that would make it take the "Signal Path" and end at it's end event. Instead it appears to have no effect on the execution (the "Signal Path" is never taken and I can subsequently call signal(executionId) and the normal path is taken).
<receiveTask id="receiveTask" name="Receive Task"></receiveTask>
<boundaryEvent id="boundarysignal1" name="" cancelActivity="true" attachedToRef="receiveTask">
<signalEventDefinition signalRef="TheSignal"></signalEventDefinition>
</boundaryEvent>
and "TheSignal" is defined at the top level definitions.runtimeService.signalEventReceived("TheSignal", executionId);
I get the error message: "org.activiti.engine.ActivitiException: Execution '22' has not subscribed to a signal event with name 'TheSignal'."05-24-2012 04:46 AM
<definitions… >
<!– declaration of the signal –>
<signal id="TheSignal" name="The signal" />
05-24-2012 05:35 AM
and "TheSignal" is defined at the top level definitionsApologies for any confusion.
05-24-2012 06:48 PM
<definitions xmlns=…">
<signal id="MySignal" name="My Signal" />
<process id="VaultingMonitorAndFollowup" name="Vaulting Monitor And Follow Up">
<startEvent id="startevent1" name="Start" activiti:initiator="initiator"></startEvent>
<userTask id="waitForCertificate" name="Certificate Monitor Task" activiti:candidateGroups="accountancy"></userTask>
<boundaryEvent id="vaultEscalationTimer" cancelActivity="true" attachedToRef="waitForCertificate">
<timerEventDefinition>
<timeDuration>${vaultDuration}</timeDuration>
</timerEventDefinition>
</boundaryEvent>
<boundaryEvent id="boundaryCancelSignal" attachedToRef="waitForCertificate" cancelActivity="true">
<signalEventDefinition signalRef="MySignal" />
</boundaryEvent>
…
…
05-25-2012 11:36 AM
<signal id="testSignal" name="Test signal"/>
Execution execution = runtimeService.createExecutionQuery().signalEventSubscription("Test signal").singleResult();
05-27-2012 10:41 PM
03-23-2016 08:15 AM
03-23-2016 04:05 PM
03-24-2016 05:25 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.