gmunozfe opened a new issue, #2238: URL: https://github.com/apache/incubator-kie-issues/issues/2238
**ProcessEventDispatcher** should dispatch _CloudEvents_ based on the `processInstanceId` received into the `kogitoprocrefid`. This was working prior to https://github.com/apache/incubator-kie-kogito-runtimes/pull/4059 but now it is failing. A regression test must be added to supervise this scenario. ### Reproducer Add this test into EventFlowIT and execute it: ``` @Test void testWrongProcessIdNotProcessedRainy() throws IOException { final String flowName = "nonStartEvent"; final String id = startProcess(flowName); sendEvents(UUID.randomUUID().toString(), "move"); assertThrows(ConditionTimeoutException.class, () -> waitForFinish(flowName, id, Duration.ofSeconds(5))); } ``` ### Expected result As the UUID used as id is random, it won't match the one for the process and the event shouldn't be dispatched: therefore, the process doesn't finish during 5 seconds, a exception is thrown and the test passes. ### Actual result Regression test like the one proposed above is failing. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
