elguardian commented on code in PR #3519:
URL:
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3519#discussion_r1603395806
##########
jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/ActivityTest.java:
##########
@@ -410,25 +392,27 @@ public void testUserTaskVerifyParameters() throws
Exception {
}
@Test
- public void testCallActivityWithContantsAssignment() throws Exception {
- kruntime = createKogitoProcessRuntime(
- "org/jbpm/bpmn2/subprocess/BPMN2-SingleTaskWithVarDef.bpmn2",
-
"org/jbpm/bpmn2/subprocess/BPMN2-InputMappingUsingValue.bpmn2");
-
- TestWorkItemHandler handler = new TestWorkItemHandler();
-
kruntime.getKogitoWorkItemManager().registerWorkItemHandler("CustomTask",
handler);
- Map<String, Object> params = new HashMap<>();
- KogitoProcessInstance processInstance =
kruntime.startProcess("InputMappingUsingValue", params);
-
- org.kie.kogito.internal.process.runtime.KogitoWorkItem workItem =
handler.getWorkItem();
+ public void testCallActivityWithContantsAssignment() {
+ Application app = ProcessTestHelper.newApplication();
+ TestWorkItemHandler workItemHandler = new TestWorkItemHandler();
+ ProcessTestHelper.registerHandler(app, "CustomTask", workItemHandler);
+ org.kie.kogito.process.Process<SingleTaskWithVarDefModel>
singleTaskWithVarDefModelProcess = SingleTaskWithVarDefProcess.newProcess(app);
+ SingleTaskWithVarDefModel singleTaskWithVarDefModel =
singleTaskWithVarDefModelProcess.createModel();
+ ProcessInstance<SingleTaskWithVarDefModel>
singleTaskWithVarDefModelProcessInstance =
singleTaskWithVarDefModelProcess.createInstance(singleTaskWithVarDefModel);
+
+ org.kie.kogito.process.Process<InputMappingUsingValueModel>
processDefinition = InputMappingUsingValueProcess.newProcess(app);
Review Comment:
this needs to go upper try to mix the same registering process in the same
place
--
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]