Camunda Connect provides a simple API for connecting HTTP services and otherthings. It aims at two usage scenarios: usage in a generic system such as theCamunda BPM process engine and standalone usage via API.

Connectors

Camunda Connect provides a HTTP and a SOAP HTTP connector. If you want toadd an own connector to Connect please have a look at the extending Connectsection. This section also describes the usage of a ConnectorConfigurator toconfigure the connector instances.

During the request invocation of a connector an interceptor chain is passed.The user can add own interceptors to this chain. The interceptor is called forevery request of this connector.

  1. connector.addRequestInterceptor(interceptor).createRequest();

Maven Coordinates

Connect can be used in any Java-based application by adding the following mavendependency to your pom.xml file:

Camunda BOM

If you use other Camunda BPM projects please import theCamunda BOMto ensure correct versions for every Camunda project.

  1. <dependencyManagement>
  2. <dependencies>
  3. <dependency>
  4. <groupId>org.camunda.connect</groupId>
  5. <artifactId>camunda-connect-bom</artifactId>
  6. <scope>import</scope>
  7. <type>pom</type>
  8. <version>${version.connect}</version>
  9. </dependency>
  10. </dependencies>
  11. </dependencyManagement>
  1. <dependencies>
  2. <dependency>
  3. <groupId>org.camunda.connect</groupId>
  4. <artifactId>camunda-connect-core</artifactId>
  5. </dependency>
  6. <dependency>
  7. <groupId>org.camunda.connect</groupId>
  8. <artifactId>camunda-connect-connectors-all</artifactId>
  9. </dependency>
  10. </dependencies>

Camunda Connect is published to maven central.

Logging

Camunda Connect uses camunda-commons-logging which itself uses SLF4J asa logging backend. To enable logging a SLF4J implementation has to be part ofyour classpath. For example slf4j-simple, log4j12 or logback-classic.

To also enable logging for the Apache HTTP client you can use a SLF4Jbridge like jcl-over-slf4j as the Apache HTTP Client doesn’t supportSLF4J.

原文: https://docs.camunda.org/manual/7.9/reference/connect/