From e75cd928f80109e09ab0913abfeaaee61035ed57 Mon Sep 17 00:00:00 2001 From: Sumesh Kariyil Date: Mon, 23 Dec 2024 13:49:15 -0800 Subject: [PATCH 1/2] Adding documentation for DB migration --- .../src/main/resources/application.yaml | 2 ++ forms-flow-bpm/migration/README.md | 10 +++++++ forms-flow-bpm/migration/scripts/7.0.0.sql | 27 +++++++++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 forms-flow-bpm/migration/README.md create mode 100644 forms-flow-bpm/migration/scripts/7.0.0.sql diff --git a/forms-flow-bpm/forms-flow-bpm-camunda/src/main/resources/application.yaml b/forms-flow-bpm/forms-flow-bpm-camunda/src/main/resources/application.yaml index 7457947c7..d40714bcc 100644 --- a/forms-flow-bpm/forms-flow-bpm-camunda/src/main/resources/application.yaml +++ b/forms-flow-bpm/forms-flow-bpm-camunda/src/main/resources/application.yaml @@ -59,6 +59,8 @@ formsflow.ai: camunda.bpm: + database: + schema-update: true job-execution: enabled: true history-level: ${CAMUNDA_BPM_HISTORY_LEVEL:none} diff --git a/forms-flow-bpm/migration/README.md b/forms-flow-bpm/migration/README.md new file mode 100644 index 000000000..962fe426f --- /dev/null +++ b/forms-flow-bpm/migration/README.md @@ -0,0 +1,10 @@ +### Migration tasks for BPM +This document lists down any manual execution needed as part of the migration between versions. + +### DB Migration +Source : https://artifacts.camunda.com/ui/native/camunda-bpm/org/camunda/bpm/distro/camunda-sql-scripts/ + +#### v6.0.2 to 7.0.0 +Execute the database scripts under scripts/7.0.0.sql + + diff --git a/forms-flow-bpm/migration/scripts/7.0.0.sql b/forms-flow-bpm/migration/scripts/7.0.0.sql new file mode 100644 index 000000000..bef6ecb7d --- /dev/null +++ b/forms-flow-bpm/migration/scripts/7.0.0.sql @@ -0,0 +1,27 @@ +-- +-- Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH +-- under one or more contributor license agreements. See the NOTICE file +-- distributed with this work for additional information regarding copyright +-- ownership. Camunda licenses this file to you under the Apache License, +-- Version 2.0; you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- + +insert into ACT_GE_SCHEMA_LOG +values ('1000', CURRENT_TIMESTAMP, '7.21.0'); + +alter table ACT_RU_EXT_TASK + add column CREATE_TIME_ timestamp; + +alter table ACT_RU_JOB + add column ROOT_PROC_INST_ID_ varchar(64); + +create index ACT_IDX_JOB_ROOT_PROCINST on ACT_RU_JOB(ROOT_PROC_INST_ID_); \ No newline at end of file From ef146ccdfc5d43d2a2670ac928e88245fb06cace Mon Sep 17 00:00:00 2001 From: Sumesh Kariyil Date: Mon, 23 Dec 2024 14:36:55 -0800 Subject: [PATCH 2/2] Adding async start task --- forms-flow-api/src/formsflow_api/constants/__init__.py | 2 +- forms-flow-web/src/components/Modeler/helpers/helper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/forms-flow-api/src/formsflow_api/constants/__init__.py b/forms-flow-api/src/formsflow_api/constants/__init__.py index 7b74cd941..52b7bf536 100644 --- a/forms-flow-api/src/formsflow_api/constants/__init__.py +++ b/forms-flow-api/src/formsflow_api/constants/__init__.py @@ -161,7 +161,7 @@ def default_flow_xml_data(name="Defaultflow"): modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.15.0"> - + Flow_09rbji4 diff --git a/forms-flow-web/src/components/Modeler/helpers/helper.js b/forms-flow-web/src/components/Modeler/helpers/helper.js index 96603b70f..5faa17299 100644 --- a/forms-flow-web/src/components/Modeler/helpers/helper.js +++ b/forms-flow-web/src/components/Modeler/helpers/helper.js @@ -33,7 +33,7 @@ const createNewProcess = () => { const blankProcessXML = ` - +