Code Monkey home page Code Monkey logo

camunda-bpm-microprofile-config-plugin's Introduction

MicroProfile Config integration plugin for the Camunda Platform

Note: This plugin is a prototype to showcase an integration with the MicroProfile Config specification. It provides an uber jar, where the smallrye-config-core, smallrye-config-source-yaml, and jgit dependencies are included. The plugin currently works with the Camunda Platform Tomcat distro.

This plugin adds support for MicroProfile Config for the Camunda Platform, i.e., it loads a ProcessEngineConfiguration instance with properties provided by a MicroProfile ConfigSource.

This plugin uses the SmallRye Config implementation of the MicroProfile Config specification.

How to use it

Depending on your project setup you can define a configuration file on your classpath, in your file system, or on an external system (accessible through a URL, e.g.: a Git config repo).

Note: if using a Git config repo, it should be public.

The properties should be defined under the camunda.config prefix.

There is also a special cambpm_conf_path property that defines a configuration file URL. It should only be defined as a system property, or environment variable.

The plugin should be added in your bpm-platform.xml (yes, you still need to do this, it's a process engine plugin):

<bpm-platform>
  ...
  <process-engine name="...">
    ...
    <plugins>
      ...
      <!-- plugin enabling microprofile config support -->
      <plugin>
        <class>org.camunda.config.CamundaMicroprofileConfigPlugin</class>
        <properties>
          <!-- you don't have to set this property, if you define the `cambpm_conf_path`
               as a system property, or environment variable -->
          <property name="configFilePath">https://github.com/koevskinikola/cambpm-test-config.git</property>
        </properties>
      </plugin>
    </plugins>
  </process-engine>
</bpm-platform>

The plugin provides support for the following ConfigSources:

  1. GitConfigSource|PropertiesConfigSource|YamlConfigSource for a provided file URL.
  2. YamlConfigSource for classpath:/application.yaml
  3. PropertiesConfigSource for classpath:/application.properties
  4. PropertiesConfigSource for META-INF/microprofile-config.properties
  5. SysPropConfigSource - system property config source.
  6. EnvConfigSource - environment variable config source.

You can have multiple configuration files. However, the properties defined in config sources with a higher priority will override the ones in lower priority config sources. The list above is ordered by descending priority.

camunda-bpm-microprofile-config-plugin's People

Contributors

koevskinikola avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.