Skip to content

Commit

Permalink
Merge branch '8.0.x' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
educhastenier committed Dec 21, 2023
2 parents 736972d + 49ae850 commit de1a9b6
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,13 @@ public void checkProcessCommentAreArchived() throws Exception {
final long numberOfInitialArchivedComments = transactionService
.executeInTransaction(getNumberOfArchivedComments);
final ProcessInstance processInstance = getProcessAPI().startProcess(definition.getId());
final Long step1Id = waitForUserTask(processInstance, "step1");
final long step1Id = waitForUserTask(processInstance, "step1");
getProcessAPI().addProcessComment(processInstance.getId(), "kikoo lol");
setSessionInfo(getSession()); // the session was cleaned by api call. This must be improved
assertEquals(1, (long) transactionService.executeInTransaction(getNumberOfComments));
assertEquals(numberOfInitialArchivedComments,
(long) transactionService.executeInTransaction(getNumberOfArchivedComments));
assignAndExecuteStep(step1Id, john);

setSessionInfo(getSession()); // the session was cleaned by api call. This must be improved
assertEquals(2, (long) transactionService.executeInTransaction(getNumberOfComments));// claim add a comment...
assertEquals(numberOfInitialArchivedComments,
(long) transactionService.executeInTransaction(getNumberOfArchivedComments));
waitForProcessToFinish(processInstance);

setSessionInfo(getSession()); // the session was cleaned by api call. This must be improved
Expand Down Expand Up @@ -169,7 +164,7 @@ public void checkPendingMappingAreDeleted() throws Exception {
processDef.addActor(ACTOR_NAME);
final ProcessDefinition definition = deployAndEnableProcessWithActor(processDef.done(), ACTOR_NAME, john);
final ProcessInstance processInstance = getProcessAPI().startProcess(definition.getId());
final Long step1Id = waitForUserTask(processInstance, "step1");
final long step1Id = waitForUserTask(processInstance, "step1");
setSessionInfo(getSession()); // the session was cleaned by api call. This must be improved
final Callable<List<SPendingActivityMapping>> getPendingMappings = () -> {
final QueryOptions queryOptions = new QueryOptions(0, 100, SPendingActivityMapping.class, "id",
Expand Down Expand Up @@ -205,7 +200,7 @@ public void checkDependenciesAreDeletedWhenProcessIsDeleted() throws Exception {
.addClasspathResource(new BarResource("myDep", content)).done();
final ProcessDefinition definition = deployAndEnableProcessWithActor(businessArchive, ACTOR_NAME, john);
final ProcessInstance processInstance = getProcessAPI().startProcess(definition.getId());
final Long step1Id = waitForUserTask(processInstance, "step1");
final long step1Id = waitForUserTask(processInstance, "step1");
List<Long> dependencyIds = transactionService
.executeInTransaction(new GetDependenciesIds(getSession(), definition.getId(), dependencyService, 0,
100));
Expand Down Expand Up @@ -244,7 +239,7 @@ public void checkMoreThan20DependenciesAreDeletedWhenProcessIsDeleted() throws E
final ProcessDefinition definition = deployAndEnableProcessWithActor(businessArchiveBuilder.done(), ACTOR_NAME,
john);
final ProcessInstance processInstance = getProcessAPI().startProcess(definition.getId());
final Long step1Id = waitForUserTask(processInstance, "step1");
final long step1Id = waitForUserTask(processInstance, "step1");
setSessionInfo(getSession()); // the session was cleaned by api call. This must be improved
List<Long> dependencyIds = transactionService
.executeInTransaction(new GetDependenciesIds(getSession(), definition.getId(), dependencyService,
Expand Down

0 comments on commit de1a9b6

Please sign in to comment.