elguardian commented on code in PR #3551:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3551#discussion_r1692807044


##########
jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/FlowTest.java:
##########
@@ -1325,16 +1368,13 @@ public void 
testMultipleInOutgoingSequenceFlowsDisable() throws Exception {
 
     @Test
     public void testConditionalFlow() throws Exception {
-        System.setProperty("jbpm.enable.multi.con", "true");
-        String processId = "designer.conditional-flow";
+        Application app = ProcessTestHelper.newApplication();
 
-        kruntime = 
createKogitoProcessRuntime("BPMN2-ConditionalFlowWithoutGateway.bpmn2");
+        org.kie.kogito.process.Process<ConditionalFlowWithoutGatewayModel> 
definition = ConditionalFlowWithoutGatewayProcess.newProcess(app);
+        
org.kie.kogito.process.ProcessInstance<ConditionalFlowWithoutGatewayModel> 
instance = definition.createInstance(definition.createModel());
+        instance.start();
 
-        KogitoProcessInstance wpi = kruntime.startProcess(processId);
-
-        assertProcessInstanceFinished(wpi, kruntime);
-        assertNodeTriggered(wpi.getStringId(), "start", "script", "end1");
-        System.clearProperty("jbpm.enable.multi.con");
+        
assertThat(instance.status()).isEqualTo(org.kie.kogito.process.ProcessInstance.STATE_COMPLETED);

Review Comment:
   you are right, the constraints were not being generated.. Fixed



-- 
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]

Reply via email to