A template for new C8 inbound Connectors.
To use this template update the following resources to match the name of your connector:
- README (title, description)
- Element Template
- POM (artifact name, id, description)
- Connector Executable (rename, implement, update
InboundConnector
annotation)- Service Provider Interface (SPI) (rename)
...and delete this hint.
Read more about creating Connectors
Check out the Connectors SDK
Camunda Inbound Connector Template
You can package the Connector by running the following command:
mvn clean package
This will create the following artifacts:
provided
and will be brought along by the respective Connector Runtime executing the Connector.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.
This Connector can be configured with the following properties:
Name | Description | Example | Can be a secret |
---|---|---|---|
sender | Value of the sender field of the messages generated by MockSubscription |
Alice |
Yes |
messagesPerMinute | How many messages per minute should MockSubscription produce (1-10) | 3 |
No |
This Connector produces the following output:
{
"event": {
"sender": ".....",
"message": ".....",
"code": 999
}
}
Run unit tests
mvn clean verify
Use the Camunda Connector Runtime to run your function as a local Java application.
In your IDE you can also simply navigate to the LocalContainerRuntime
class in test scope and run it via your IDE.
If necessary, you can adjust application.properties
in test scope.
The element templates can be found in the element-templates/inbound-template-connector.json file.