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.
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.
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-bom</artifactId>
<scope>import</scope>
<type>pom</type>
<version>${version.connect}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-core</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.connect</groupId>
<artifactId>camunda-connect-connectors-all</artifactId>
</dependency>
</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.