Skip to content

Commit

Permalink
Merge branch 'release/7.18.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
zambrovski committed Nov 16, 2022
2 parents cd765eb + bd68c77 commit feb0f6c
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 48 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache .m2
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
distribution: zulu
cache: maven
java-version: 11

- name: Prepare mvnw
Expand Down
25 changes: 10 additions & 15 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,25 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache .m2
uses: actions/cache@v1
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
distribution: zulu
cache: maven
java-version: 11
server-id: ossrh
server-username: OSS_CENTRAL_USERNAME # env variable for Maven Central
server-password: OSS_CENTRAL_PASSWORD # env variable for Maven Central

# Get GPG private key into GPG
- name: Import GPG Owner Trust
run: echo ${{ secrets.GPG_OWNERTRUST }} | base64 --decode | gpg --import-ownertrust

- name: Import GPG key
run: echo ${{ secrets.GPG_SECRET_KEYS }} | base64 --decode | gpg --import --no-tty --batch --yes

- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11.0.5
server-id: ossrh
server-username: OSS_CENTRAL_USERNAME # env variable for Maven Central
server-password: OSS_CENTRAL_PASSWORD # env variable for Maven Central

- name: Prepare mvnw
run: chmod +x ./mvnw

Expand Down
33 changes: 20 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
[![Build Status](https://github.com/holunda-io/camunda-bpm-api/actions/workflows/default.yml/badge.svg)](https://github.com/holunda-io/camunda-bpm-api/actions/workflows/default.yml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.holunda/camunda-bpm-api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.holunda/camunda-bpm-api)
# Camunda Platform 7 Engine API

## Camunda BPM Engine API
A small extract of the API layer from the greatest process engine ever.

> A small extract of the API layer from the greatest process engine ever.
[![stable](https://img.shields.io/badge/lifecycle-STABLE-green.svg)](https://github.com/holisticon#open-source-lifecycle)
[![Build Status](https://github.com/holunda-io/camunda-bpm-api/actions/workflows/default.yml/badge.svg)](https://github.com/holunda-io/camunda-bpm-api/actions/workflows/default.yml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.holunda.camunda-api/camunda-bpm-engine-api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.holunda.camunda-api/camunda-bpm-engine-api)

## What is this?

Sometimes for building libraries it is useful to have the API only, without the implementation. This library extracts the official Java Camunda Engine API
from Camunda JAR and packages it as a small JAR. By doing so, we had to provide very few own classes, to cut the track to implementation. It is by **NO MEANS** a replacement, but just a bunch of classes which may be required on the classpath, if
you use a library referencing Camunda BPM classes (but not using them).
Sometimes for building libraries it is useful to have the API only, without the implementation. This library extracts the official Java Camunda Engine API from Camunda JAR and packages it as a small JAR. By doing so, we had to provide very few own classes, to cut the track to implementation. It is by **NO MEANS** a replacement, but just a bunch of classes which may be required on the classpath, if you use a library referencing Camunda BPM classes (but not using them).

## Why do you need this

Imagine you are implementing a remote-communication library like Camunda REST Client Spring Boot that implements the Camunda Plattform 7 Engine API by calling a remote process engine. Or you are building a library that wants to use different artifacts of the Camunda API, without puting them on a compile
dependency. Then - consider to use this lib...


Short facts:

Expand All @@ -28,7 +33,7 @@ If you just want to start using the library, put the following dependency into y
<dependency>
<groupId>io.holunda.camunda-api</groupId>
<artifactId>camunda-bpm-engine-api</artifactId>
<version>7.15.0</version>
<version>7.17.0</version>
</dependency>
```

Expand All @@ -38,34 +43,34 @@ If you are interested in using the DMN engine API only, put the following depend
<dependency>
<groupId>io.holunda.camunda-api</groupId>
<artifactId>camunda-dmn-engine-api</artifactId>
<version>7.15.0</version>
<version>7.17.0</version>
</dependency>
```


If you are using Gradle Kotlin DSL add to your `build.gradle.kts`:

```kotlin
implementation("io.holunda.camunda-api:camunda-bpm-engine-api:7.15.0")
implementation("io.holunda.camunda-api:camunda-bpm-engine-api:7.17.0")
```

and for DMN only:

```kotlin
implementation("io.holunda.camunda-api:camunda-dmn-engine-api:7.15.0")
implementation("io.holunda.camunda-api:camunda-dmn-engine-api:7.17.0")
```


For Gradle Groovy DSL add to your `build.gradle`:

```groovy
implementation 'io.holunda.camunda-api:camunda-bpm-engine-api:7.15.0'
implementation 'io.holunda.camunda-api:camunda-bpm-engine-api:7.17.0'
```

and for DMN only:

```groovy
implementation 'io.holunda.camunda-api:camunda-bpm-engine-api:7.15.0'
implementation 'io.holunda.camunda-api:camunda-bpm-engine-api:7.17.0'
```

Please note that the version of this library is tightly-coupled to the version of original Camunda API.
Expand All @@ -76,6 +81,8 @@ Please note that the version of this library is tightly-coupled to the version o
| ------------------------ |------------------------:|
| 7.14 | 7.14.0 |
| 7.15 | 7.15.0 |
| 7.16 | 7.16.0 |
| 7.17 | 7.17.0 |



Expand Down
2 changes: 1 addition & 1 deletion dmn-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.camunda-api</groupId>
<artifactId>camunda-api-parent</artifactId>
<version>7.17.0</version>
<version>7.18.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
16 changes: 8 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>io.holunda.camunda-api</groupId>
<artifactId>camunda-api-parent</artifactId>
<version>7.17.0</version>
<version>7.18.0</version>
<name>${project.artifactId}</name>
<description>Camunda BPM Engine API</description>
<url>https://github.com/holunda-io/camunda-bpm-api/</url>
Expand All @@ -18,7 +18,7 @@
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>

<camunda-engine.version>7.17.0</camunda-engine.version>
<camunda-engine.version>7.18.0</camunda-engine.version>
</properties>

<modules>
Expand Down Expand Up @@ -127,7 +127,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
Expand All @@ -137,7 +137,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
<configuration>
<failOnWarnings>false</failOnWarnings>
<failOnError>false</failOnError>
Expand Down Expand Up @@ -173,7 +173,7 @@
<plugin>
<groupId>com.amashchenko.maven.plugin</groupId>
<artifactId>gitflow-maven-plugin</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
<configuration>
<gitFlowConfig>
<productionBranch>master</productionBranch>
Expand Down Expand Up @@ -218,7 +218,7 @@
<!-- Deploy -->
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
<version>3.0.0</version>
<configuration>
<skip>true</skip>
</configuration>
Expand Down Expand Up @@ -250,14 +250,14 @@
<!-- Install -->
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<version>3.0.1</version>
</plugin>

<!-- Enforce -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.0</version>
<executions>
<execution>
<id>enforce-maven</id>
Expand Down
4 changes: 3 additions & 1 deletion process-engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>io.holunda.camunda-api</groupId>
<artifactId>camunda-api-parent</artifactId>
<version>7.17.0</version>
<version>7.18.0</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down Expand Up @@ -102,6 +102,8 @@

org/camunda/bpm/engine/impl/bpmn/parser/Error.java,
org/camunda/bpm/engine/impl/core/variable/mapping/value/ParameterValueProvider.java,
org/camunda/bpm/engine/impl/errorcode/BuiltinExceptionCode.java,
org/camunda/bpm/engine/impl/errorcode/ExceptionCodeProvider.java,
org/camunda/bpm/engine/impl/identity/Account.java,
org/camunda/bpm/engine/impl/identity/Authentication.java,
</includes>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.camunda.bpm.engine.impl.util;

import org.camunda.bpm.engine.impl.__NotImplemented;

import java.sql.SQLException;

/**
* Referenced from {@link org.camunda.bpm.engine.impl.errorcode.ExceptionCodeProvider}
* Real implementation has dependencies to parts of persistence.
*/
public class ExceptionUtil {
public static boolean checkDeadlockException(SQLException sqlException) {
throw __NotImplemented.EXCEPTION;
}

public static boolean checkForeignKeyConstraintViolation(SQLException sqlException, boolean b) {
throw __NotImplemented.EXCEPTION;
}

public static boolean checkValueTooLongException(SQLException sqlException) {
throw __NotImplemented.EXCEPTION;
}
}

0 comments on commit feb0f6c

Please sign in to comment.