elguardian commented on code in PR #3627:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3627#discussion_r1724573046
##########
jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/FlowTest.java:
##########
@@ -1435,15 +1377,19 @@ public void testExclusiveSplitDefaultNoCondition()
throws Exception {
}
@Test
- public void testMultipleGatewaysProcess() throws Exception {
- kruntime =
createKogitoProcessRuntime("org/jbpm/bpmn2/flow/BPMN2-MultipleGatewaysProcess.bpmn2");
- kruntime.getProcessEventManager().addEventListener(new
DefaultKogitoProcessEventListener() {
- KogitoProcessInstance pi;
+ public void testMultipleGatewaysProcess() {
+ Application app = ProcessTestHelper.newApplication();
+ org.kie.kogito.process.Process<MultipleGatewaysProcessModel>
definition = MultipleGatewaysProcessProcess.newProcess(app);
+ MultipleGatewaysProcessModel model = definition.createModel();
+ model.setAction("CreateAgent");
+
+ ProcessTestHelper.registerProcessEventListener(app, new
DefaultKogitoProcessEventListener() {
+ ProcessInstance<MultipleGatewaysProcessModel> pi;
@Override
public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {
if
(event.getNodeInstance().getNodeName().equals("CreateAgent")) {
- pi.signalEvent("Signal_1", null);
+ pi.send(Sig.of("Signal_1", null));
Review Comment:
use the kruntime in here. not the pi.
--
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]