Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
chore(connectors): extract Connector Runtime into a separate reposito…
Browse files Browse the repository at this point in the history
…ry (#416)
  • Loading branch information
chillleader authored May 2, 2023
1 parent b89aa70 commit 3636ed1
Show file tree
Hide file tree
Showing 56 changed files with 13 additions and 3,886 deletions.
43 changes: 12 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,42 +167,23 @@ An example test case is [available here](https://github.com/camunda-community-hu



## Run OutboundConnectors
## Run Connectors

Consult the [Connector SDK](https://github.com/camunda/connector-sdk) for details on Connectors in general.

You can run `OutboundConnectorFunction`s using Spring Zeebe with any of the following options:

* Expose them as Spring beans and run them directly in your own application.
* Run them using the pre-packaged [Connector runtime](./connector-runtime) application.

### Run OutboundConnector as Spring bean

If you have the following outbound Connector function:

```
@OutboundConnector(
name = "Twitter",
inputVariables = {"tweetContent"},
type = "io.berndruecker.example.TwitterConnector:1"
)
public class TwitterOutboundConnector implements OutboundConnectorFunction {
```
Spring Zeebe project previously included the Runtime for Camunda 8 Connectors. It has been moved to a separate [Connectors](https://github.com/camunda/connectors-bundle) project.
To run Connectors, use can now use the following dependency in your project:

You can just expose it as a Spring bean:

```
@Configuration
public class ConnectorFactory {
@Bean
public TwitterOutboundConnector twitterOutboundConnector() {
return new TwitterOutboundConnector();
}
}
```xml
<dependency>
<groupId>io.camunda.connector</groupId>
<artifactId>spring-boot-starter-connectors/artifactId>
<version>${connectors.version}</version>
</dependency>
```

Now a worker for this Connector will be started in the background.
If you have previously used the pure Spring Zeebe project to run Connectors, you should migrate to the new dependency.

You can find the latest version of Connectors on [this page](https://github.com/camunda/connectors-bundle/releases/tag/0.18.2).
Consult the [Connector SDK](https://github.com/camunda/connector-sdk) for details on Connectors in general.

# Documentation

Expand Down
215 changes: 0 additions & 215 deletions connector-runtime/README.md

This file was deleted.

Loading

0 comments on commit 3636ed1

Please sign in to comment.