This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 2_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_1_X by this push:
new cfd9c02 [SYNCOPE-1470] Workaround (as Flowable does not support
MariaDB): treat MariaDB as MySQL
cfd9c02 is described below
commit cfd9c02ba39e11c10d8294ca249997f6bf672987
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Tue May 7 09:27:36 2019 +0200
[SYNCOPE-1470] Workaround (as Flowable does not support MariaDB): treat
MariaDB as MySQL
---
.../support/DomainProcessEngineConfiguration.java | 31 ++++++++++++++++++++++
.../src/main/resources/workflowFlowableContext.xml | 2 +-
2 files changed, 32 insertions(+), 1 deletion(-)
diff --git
a/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/support/DomainProcessEngineConfiguration.java
b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/support/DomainProcessEngineConfiguration.java
new file mode 100644
index 0000000..6f18e84
--- /dev/null
+++
b/ext/flowable/flowable-bpmn/src/main/java/org/apache/syncope/core/flowable/support/DomainProcessEngineConfiguration.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); 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.
+ */
+package org.apache.syncope.core.flowable.support;
+
+import org.flowable.spring.SpringProcessEngineConfiguration;
+
+public class DomainProcessEngineConfiguration extends
SpringProcessEngineConfiguration {
+
+ public DomainProcessEngineConfiguration() {
+ super();
+
+ // workaround for Flowable not supporting (yet?) MariaDB
+ databaseTypeMappings.setProperty("MariaDB", DATABASE_TYPE_MYSQL);
+ }
+}
diff --git
a/ext/flowable/flowable-bpmn/src/main/resources/workflowFlowableContext.xml
b/ext/flowable/flowable-bpmn/src/main/resources/workflowFlowableContext.xml
index 73e4873..2df4321 100644
--- a/ext/flowable/flowable-bpmn/src/main/resources/workflowFlowableContext.xml
+++ b/ext/flowable/flowable-bpmn/src/main/resources/workflowFlowableContext.xml
@@ -47,7 +47,7 @@ under the License.
-->
<bean id="idGenerator" class="org.flowable.engine.impl.db.DbIdGenerator"/>
- <bean class="org.flowable.spring.SpringProcessEngineConfiguration"
scope="prototype">
+ <bean
class="org.apache.syncope.core.flowable.support.DomainProcessEngineConfiguration"
scope="prototype">
<property name="databaseSchemaUpdate" value="true"/>
<property name="jpaHandleTransaction" value="true"/>