/quartz-connector

Primary LanguageJavaApache License 2.0Apache-2.0

Quartz Connector

Camunda Connector Template for Quartz jobs

Build

You can package the Connector by running the following command:

mvn clean package

This will create the following artifacts:

  • A thin JAR without dependencies.
  • An uber JAR containing all dependencies, potentially shaded to avoid classpath conflicts. This will not include the SDK artifacts since those are in scope provided and will be brought along by the respective Connector Runtime executing the Connector.

Shading dependencies

You can use the maven-shade-plugin defined in the Maven configuration to relocate common dependencies that are used in other Connectors and the Connector Runtime. This helps to avoid classpath conflicts when the Connector is executed.

Use the relocations configuration in the Maven Shade plugin to define the dependencies that should be shaded. The Maven Shade documentation provides more details on relocations.

API

Input

{
  "token": ".....",
  "message": "....."
}

Output

{
  "result": {
    "jobId": "....."
  }
}

Test locally

Run unit tests

mvn clean verify

Use the Camunda Job Worker Connector Run-Time to run your the function as a local Job Worker.

Element Template

The element templates can be found in the element-templates/quartz-connector.json file.