-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:flowable/flowable-engine into flowa…
…ble-release-7.1.0
- Loading branch information
Showing
67 changed files
with
1,969 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Flowable Graal Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'flowable-release-*' | ||
|
||
env: | ||
MAVEN_ARGS: >- | ||
-B -V --no-transfer-progress | ||
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 | ||
jobs: | ||
test_graal: | ||
name: Linux Graal Native | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: 17 | ||
distribution: graalvm | ||
- name: Cache Maven Repository | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- name: Install | ||
run: ./mvnw install -Pdistro ${MAVEN_ARGS} -DskipTests=true -Dmaven.javadoc.skip=true | ||
- name: Test | ||
run: ./mvnw test -PnativeTest,native,distro,errorLogging ${MAVEN_ARGS} -Dmaven.test.redirectTestOutputToFile=false -pl modules/flowable-spring-boot/flowable-spring-boot-samples/flowable-spring-boot-sample-native |
31 changes: 31 additions & 0 deletions
31
...le-app-engine/src/main/java/org/flowable/app/engine/impl/aot/FlowableAppRuntimeHints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* Licensed 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.flowable.app.engine.impl.aot; | ||
|
||
import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar; | ||
import org.springframework.aot.hint.ResourceHints; | ||
import org.springframework.aot.hint.RuntimeHints; | ||
import org.springframework.aot.hint.RuntimeHintsRegistrar; | ||
|
||
/** | ||
* @author Filip Hrisafov | ||
*/ | ||
public class FlowableAppRuntimeHints implements RuntimeHintsRegistrar { | ||
|
||
@Override | ||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) { | ||
ResourceHints resourceHints = hints.resources(); | ||
resourceHints.registerPattern("org/flowable/app/db/liquibase/flowable-app-db-changelog.xml"); | ||
FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/app/db/mapping", hints, classLoader); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
modules/flowable-app-engine/src/main/resources/META-INF/spring/aot.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.springframework.aot.hint.RuntimeHintsRegistrar=\ | ||
org.flowable.app.engine.impl.aot.FlowableAppRuntimeHints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...e/src/main/java/org/flowable/batch/service/impl/aot/FlowableBatchServiceRuntimeHints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* Licensed 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.flowable.batch.service.impl.aot; | ||
|
||
import org.flowable.common.engine.impl.aot.FlowableSqlResourceHintsRegistrar; | ||
import org.springframework.aot.hint.ResourceHints; | ||
import org.springframework.aot.hint.RuntimeHints; | ||
import org.springframework.aot.hint.RuntimeHintsRegistrar; | ||
|
||
/** | ||
* @author Filip Hrisafov | ||
*/ | ||
public class FlowableBatchServiceRuntimeHints implements RuntimeHintsRegistrar { | ||
|
||
@Override | ||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) { | ||
ResourceHints resourceHints = hints.resources(); | ||
FlowableSqlResourceHintsRegistrar.registerSqlResources("org/flowable/batch/service/db", resourceHints); | ||
|
||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
modules/flowable-batch-service/src/main/resources/META-INF/spring/aot.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.springframework.aot.hint.RuntimeHintsRegistrar=\ | ||
org.flowable.batch.service.impl.aot.FlowableBatchServiceRuntimeHints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/aot/FlowableCmmnRuntimeHints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* Licensed 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.flowable.cmmn.engine.impl.aot; | ||
|
||
import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar; | ||
import org.flowable.variable.service.impl.QueryVariableValue; | ||
import org.springframework.aot.hint.MemberCategory; | ||
import org.springframework.aot.hint.ResourceHints; | ||
import org.springframework.aot.hint.RuntimeHints; | ||
import org.springframework.aot.hint.RuntimeHintsRegistrar; | ||
|
||
/** | ||
* @author Filip Hrisafov | ||
*/ | ||
public class FlowableCmmnRuntimeHints implements RuntimeHintsRegistrar { | ||
|
||
@Override | ||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) { | ||
ResourceHints resourceHints = hints.resources(); | ||
FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/cmmn/db/mapping", hints, classLoader); | ||
resourceHints.registerPattern("org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml"); | ||
resourceHints.registerPattern("org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog-crdb.xml"); | ||
resourceHints.registerPattern("org/flowable/impl/cmmn/parser/*.xsd"); | ||
|
||
hints.reflection() | ||
.registerType(QueryVariableValue.class, MemberCategory.INVOKE_PUBLIC_METHODS); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
modules/flowable-cmmn-engine/src/main/resources/META-INF/spring/aot.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.springframework.aot.hint.RuntimeHintsRegistrar=\ | ||
org.flowable.cmmn.engine.impl.aot.FlowableCmmnRuntimeHints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...st/eventlistener/VariableEventListenerTest.testTriggerMultipleVariableEventListeners.cmmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" | ||
xmlns:flowable="http://flowable.org/cmmn" | ||
targetNamespace="http://flowable.org/cmmn"> | ||
<case id="variableListener" name="Variable listener"> | ||
<casePlanModel id="casePlanModel"> | ||
<planItem id="planItemA" name="A" definitionRef="taskA"/> | ||
<planItem id="variableEventListenerPlanItem" definitionRef="variableEventListener"/> | ||
<planItem id="planItemB" name="B" definitionRef="taskB"> | ||
<entryCriterion id="entryTaskB" sentryRef="sentryOnVariableEventListener"/> | ||
</planItem> | ||
<planItem id="variableEventListenerPlanItem2" definitionRef="variableEventListener2"/> | ||
<planItem id="planItemC" name="C" definitionRef="taskC"> | ||
<entryCriterion id="entryTaskC" sentryRef="sentryOnVariableEventListener2"/> | ||
</planItem> | ||
<sentry id="sentryOnVariableEventListener"> | ||
<planItemOnPart id="sentryOnvariableEvent" sourceRef="variableEventListenerPlanItem"> | ||
<standardEvent>occur</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<sentry id="sentryOnVariableEventListener2"> | ||
<planItemOnPart id="sentryOnvariableEvent2" sourceRef="variableEventListenerPlanItem2"> | ||
<standardEvent>occur</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<humanTask id="taskA" name="A"/> | ||
<eventListener id="variableEventListener" flowable:eventType="variable" flowable:variableName="var1" /> | ||
<humanTask id="taskB" name="B"/> | ||
<eventListener id="variableEventListener2" flowable:eventType="variable" flowable:variableName="var1" /> | ||
<humanTask id="taskC" name="C"/> | ||
</casePlanModel> | ||
</case> | ||
</definitions> |
32 changes: 32 additions & 0 deletions
32
...le-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/aot/FlowableDmnRuntimeHints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* Licensed 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.flowable.dmn.engine.impl.aot; | ||
|
||
import org.flowable.common.engine.impl.aot.FlowableMyBatisResourceHintsRegistrar; | ||
import org.springframework.aot.hint.ResourceHints; | ||
import org.springframework.aot.hint.RuntimeHints; | ||
import org.springframework.aot.hint.RuntimeHintsRegistrar; | ||
|
||
/** | ||
* @author Filip Hrisafov | ||
*/ | ||
public class FlowableDmnRuntimeHints implements RuntimeHintsRegistrar { | ||
|
||
@Override | ||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) { | ||
ResourceHints resourceHints = hints.resources(); | ||
FlowableMyBatisResourceHintsRegistrar.registerMappingResources("org/flowable/dmn/db/mapping", hints, classLoader); | ||
resourceHints.registerPattern("org/flowable/dmn/db/liquibase/flowable-dmn-db-changelog.xml"); | ||
resourceHints.registerPattern("org/flowable/impl/dmn/parser/*.xsd"); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
modules/flowable-dmn-engine/src/main/resources/META-INF/spring/aot.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.springframework.aot.hint.RuntimeHintsRegistrar=\ | ||
org.flowable.dmn.engine.impl.aot.FlowableDmnRuntimeHints |
39 changes: 39 additions & 0 deletions
39
...-common/src/main/java/org/flowable/common/engine/impl/aot/FlowableCommonRuntimeHints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* Licensed 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.flowable.common.engine.impl.aot; | ||
|
||
import org.flowable.common.engine.impl.persistence.entity.ByteArrayRefTypeHandler; | ||
import org.springframework.aot.hint.MemberCategory; | ||
import org.springframework.aot.hint.ResourceHints; | ||
import org.springframework.aot.hint.RuntimeHints; | ||
import org.springframework.aot.hint.RuntimeHintsRegistrar; | ||
|
||
/** | ||
* @author Filip Hrisafov | ||
*/ | ||
public class FlowableCommonRuntimeHints implements RuntimeHintsRegistrar { | ||
|
||
@Override | ||
public void registerHints(RuntimeHints hints, ClassLoader classLoader) { | ||
ResourceHints resourceHints = hints.resources(); | ||
resourceHints.registerPattern("META-INF/services/liquibase.hub.HubService"); | ||
resourceHints.registerPattern("META-INF/services/liquibase.license.LicenseService"); | ||
resourceHints.registerResourceBundle("org.flowable.common.engine.impl.de.odysseus.el.misc.LocalStrings"); | ||
// If we can detect which DB is being used we can perhaps register only the appropriate DB file | ||
resourceHints.registerPattern("org/flowable/common/db/properties/*.properties"); | ||
FlowableSqlResourceHintsRegistrar.registerSqlResources("org/flowable/common/db", resourceHints); | ||
|
||
hints.reflection() | ||
.registerType(ByteArrayRefTypeHandler.class, MemberCategory.values()); | ||
} | ||
} |
Oops, something went wrong.