Skip to content

Commit

Permalink
Merge branch 'main' of github.com:flowable/flowable-engine into flowa…
Browse files Browse the repository at this point in the history
…ble-release-7.2.0
  • Loading branch information
tijsrademakers committed Aug 20, 2024
2 parents 5294dfe + eab1f9c commit 1daaa40
Show file tree
Hide file tree
Showing 26 changed files with 9 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ alter table ACT_APP_APPDEF
drop table ACT_APP_APPDEF;
drop table ACT_APP_DEPLOYMENT_RESOURCE;
drop table ACT_APP_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'app.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table if exists ACT_APP_DEPLOYMENT cascade constraints;
drop index if exists ACT_IDX_APP_RSRC_DPL;
drop index if exists ACT_IDX_APP_DEF_DPLY;
drop index if exists ACT_IDX_APP_DEF_UNIQ;

delete from ACT_GE_PROPERTY where NAME_ = 'app.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_APP_APPDEF') drop table ACT_APP_APPDEF;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_APP_DEPLOYMENT_RESOURCE') drop table ACT_APP_DEPLOYMENT_RESOURCE;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_APP_DEPLOYMENT') drop table ACT_APP_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'app.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ alter table ACT_APP_APPDEF
drop table if exists ACT_APP_APPDEF;
drop table if exists ACT_APP_DEPLOYMENT_RESOURCE;
drop table if exists ACT_APP_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'app.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ alter table ACT_APP_APPDEF
drop table ACT_APP_APPDEF;
drop table ACT_APP_DEPLOYMENT_RESOURCE;
drop table ACT_APP_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'app.schema.version';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
drop table if exists ACT_APP_APPDEF cascade;
drop table if exists ACT_APP_DEPLOYMENT_RESOURCE cascade;
drop table if exists ACT_APP_DEPLOYMENT cascade;

delete from ACT_GE_PROPERTY where NAME_ = 'app.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ drop table ACT_CMMN_RU_CASE_INST;
drop table ACT_CMMN_CASEDEF;
drop table ACT_CMMN_DEPLOYMENT_RESOURCE;
drop table ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ drop index if exists ACT_IDX_CASE_INST_PARENT;
drop index if exists ACT_IDX_CASE_INST_CASE_DEF;
drop index if exists ACT_IDX_CASE_DEF_DPLY;
drop index if exists ACT_IDX_CMMN_RSRC_DPL;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ drop index if exists ACT_IDX_CASE_INST_PARENT;
drop index if exists ACT_IDX_CASE_INST_CASE_DEF;
drop index if exists ACT_IDX_CASE_DEF_DPLY;
drop index if exists ACT_IDX_CMMN_RSRC_DPL;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_CASEDEF') drop table ACT_CMMN_CASEDEF;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_DEPLOYMENT_RESOURCE') drop table ACT_CMMN_DEPLOYMENT_RESOURCE;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_CMMN_DEPLOYMENT') drop table ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ drop table if exists ACT_CMMN_RU_CASE_INST;
drop table if exists ACT_CMMN_CASEDEF;
drop table if exists ACT_CMMN_DEPLOYMENT_RESOURCE;
drop table if exists ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,3 @@ drop table ACT_CMMN_RU_CASE_INST;
drop table ACT_CMMN_CASEDEF;
drop table ACT_CMMN_DEPLOYMENT_RESOURCE;
drop table ACT_CMMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ drop table ACT_CMMN_RU_CASE_INST cascade;
drop table ACT_CMMN_CASEDEF cascade;
drop table ACT_CMMN_DEPLOYMENT_RESOURCE cascade;
drop table ACT_CMMN_DEPLOYMENT cascade;

delete from ACT_GE_PROPERTY where NAME_ = 'cmmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table ACT_DMN_HI_DECISION_EXECUTION;
drop table ACT_DMN_DECISION;
drop table ACT_DMN_DEPLOYMENT_RESOURCE;
drop table ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table if exists ACT_DMN_DEPLOYMENT cascade constraints;

drop index if exists ACT_IDX_DMN_INSTANCE_ID;
drop index if exists ACT_IDX_DMN_DEC_UNIQ;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_DMN_DECISION') drop table ACT_DMN_DECISION;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_DMN_DEPLOYMENT_RESOURCE') drop table ACT_DMN_DEPLOYMENT_RESOURCE;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'ACT_DMN_DEPLOYMENT') drop table ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table if exists ACT_DMN_HI_DECISION_EXECUTION;
drop table if exists ACT_DMN_DECISION;
drop table if exists ACT_DMN_DEPLOYMENT_RESOURCE;
drop table if exists ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table ACT_DMN_HI_DECISION_EXECUTION;
drop table ACT_DMN_DECISION;
drop table ACT_DMN_DEPLOYMENT_RESOURCE;
drop table ACT_DMN_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ drop table if exists ACT_DMN_HI_DECISION_EXECUTION cascade;
drop table if exists ACT_DMN_DECISION cascade;
drop table if exists ACT_DMN_DEPLOYMENT_RESOURCE cascade;
drop table if exists ACT_DMN_DEPLOYMENT cascade;

delete from ACT_GE_PROPERTY where NAME_ = 'dmn.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table FLW_CHANNEL_DEFINITION;
drop table FLW_EVENT_DEFINITION;
drop table FLW_EVENT_RESOURCE;
drop table FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table if exists FLW_CHANNEL_DEFINITION cascade constraints;
drop table if exists FLW_EVENT_DEFINITION cascade constraints;
drop table if exists FLW_EVENT_RESOURCE cascade constraints;
drop table if exists FLW_EVENT_DEPLOYMENT cascade constraints;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_EVENT_DEFINITION') drop table FLW_EVENT_DEFINITION;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_EVENT_RESOURCE') drop table FLW_EVENT_RESOURCE;
if exists (select TABLE_NAME from INFORMATION_SCHEMA.TABLES where TABLE_NAME = 'FLW_EVENT_DEPLOYMENT') drop table FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table if exists FLW_CHANNEL_DEFINITION;
drop table if exists FLW_EVENT_DEFINITION;
drop table if exists FLW_EVENT_RESOURCE;
drop table if exists FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ drop table FLW_CHANNEL_DEFINITION;
drop table FLW_EVENT_DEFINITION;
drop table FLW_EVENT_RESOURCE;
drop table FLW_EVENT_DEPLOYMENT;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ drop table if exists FLW_CHANNEL_DEFINITION cascade;
drop table if exists FLW_EVENT_DEFINITION cascade;
drop table if exists FLW_EVENT_RESOURCE cascade;
drop table if exists FLW_EVENT_DEPLOYMENT cascade;

delete from ACT_GE_PROPERTY where NAME_ = 'eventregistry.schema.version';
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.when;

import java.util.Calendar;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -84,12 +86,12 @@ public void resetMocks() {
@Deployment
public void testGetProcessTask() throws Exception {
if (processEngineConfiguration.getHistoryLevel().isAtLeast(HistoryLevel.AUDIT)) {
Calendar now = Calendar.getInstance();
processEngineConfiguration.getClock().setCurrentTime(now.getTime());
Date now = Date.from(Instant.now().truncatedTo(ChronoUnit.SECONDS));
processEngineConfiguration.getClock().setCurrentTime(now);

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("oneTaskProcess");
Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();
taskService.setDueDate(task.getId(), now.getTime());
taskService.setDueDate(task.getId(), now);
taskService.setOwner(task.getId(), "owner");
task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult();
assertThat(task).isNotNull();
Expand Down Expand Up @@ -131,8 +133,8 @@ public void testGetProcessAdhoc() throws Exception {
if (processEngineConfiguration.getHistoryLevel().isAtLeast(HistoryLevel.AUDIT)) {
try {

Calendar now = Calendar.getInstance();
processEngineConfiguration.getClock().setCurrentTime(now.getTime());
Date now = Date.from(Instant.now().truncatedTo(ChronoUnit.SECONDS));
processEngineConfiguration.getClock().setCurrentTime(now);

Task parentTask = taskService.newTask();
taskService.saveTask(parentTask);
Expand All @@ -144,7 +146,7 @@ public void testGetProcessAdhoc() throws Exception {
task.setAssignee("kermit");
task.setDelegationState(DelegationState.RESOLVED);
task.setDescription("Description");
task.setDueDate(now.getTime());
task.setDueDate(now);
task.setOwner("owner");
task.setPriority(20);
taskService.saveTask(task);
Expand Down

0 comments on commit 1daaa40

Please sign in to comment.