apache / incubator-kie-kogito-apps

Kogito Apps - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
http://kogito.kie.org
Apache License 2.0
61 stars 127 forks source link

Process Definition storage fails if version is not set #1983

Closed fjtirado closed 7 months ago

fjtirado commented 7 months ago

Describe the bug

If version is not set in the workflow definition, indexProcesDefinition throw an IndexOutOfBound exception. This is wrong, since version is optional in the specification https://github.com/serverlessworkflow/specification/blob/main/specification.md#workflow-definition-structure.

Expected behavior

Workflow without version should be supported without exception

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

fjtirado commented 7 months ago

Fixed with https://github.com/apache/incubator-kie-kogito-apps/pull/1984