@@ -34,26 +34,29 @@ class CatchSignalEventRequest implements ShouldQueue
3434 *
3535 * @return void
3636 */
37- public function __construct ($ chunck , $ signalRef , $ payload , $ throwEvent , $ eventDefinition , $ tokenId )
37+ public function __construct ($ chunck , $ signalRef , $ payload , $ throwEvent , $ eventDefinition , $ tokenId, $ requestId )
3838 {
3939 $ this ->chunck = $ chunck ;
4040 $ this ->payload = $ payload ;
4141 $ this ->signalRef = $ signalRef ;
4242 $ this ->throwEvent = $ throwEvent ;
4343 $ this ->eventDefinition = $ eventDefinition ;
4444 $ this ->tokenId = $ tokenId ;
45+ $ this ->requestId = $ requestId ;
4546 }
4647
4748 public function handle ()
4849 {
50+ dump ("++++++++++++++++++++++handle " );
4951 $ mainRequest = ProcessRequest::find ($ this ->requestId );
5052 $ definitions = ($ mainRequest ->processVersion ?? $ mainRequest ->process )->getDefinitions (true );
5153 $ throwEvent = $ definitions ->findElementById ($ this ->throwEvent )->getBpmnElementInstance ();
5254 $ eventDefinition = $ definitions ->findElementById ($ this ->eventDefinition )->getBpmnElementInstance ();
5355 $ token = ProcessRequestToken::find ($ this ->tokenId );
5456 foreach ($ this ->chunck as $ requestId ) {
57+ dump ("============================== " );
5558 $ request = ProcessRequest::find ($ requestId );
56- $ definitions = ($ request ->processVersion ?? $ request ->process )->getDefinitions (true );
59+ $ definitions = ($ request ->processVersion ?? $ request ->process )->getDefinitions (true , null , false );
5760 $ engine = $ definitions ->getEngine ();
5861 $ instance = $ engine ->loadProcessRequest ($ request );
5962 $ engine ->getEventDefinitionBus ()->dispatchEventDefinition (
0 commit comments