SUNILathulya opened a new pull request, #6889: URL: https://github.com/apache/incubator-kie/pull/6889
closes https://github.com/apache/incubator-kie-issues/issues/2390 Migrated testUserTaskWithDataStoreScenario in ActivityTest from the legacy v7 runtime-based API to the v9 generated process class approach. The test file can be identified by referring to ActivityTest.java: https://github.com/apache/incubator-kie/blob/main/kogito-jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/ActivityTest.java ## Tests Migrated **testUserTaskWithDataStoreScenario()** — Line 508 - Validates that a process containing two sequential Human Tasks connected via a BPMN Data Store element can be instantiated and started without errors - Converts from v7 createKogitoProcessRuntime() with runtime XML parsing to v9 - UserTaskWithDataStoreProcess.newProcess(app) using the code-generated process class backed by the pre-existing BPMN2-UserTaskWithDataStore.bpmn2 - Replaces kruntime.getKogitoWorkItemManager().registerWorkItemHandler() with ProcessTestHelper.registerHandler(app, "Human Task", new DoNothingWorkItemHandler()) - No assertions existed in the original test beyond process start; none were added — the test confirms the engine correctly ignores the informational <bpmn2:dataStore> association elements and starts the process without throwing -- 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]
