diff --git a/pom.xml b/pom.xml
index 39c8984..3df8ed6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
UTF-8
- 8.5.2
+ 8.6.0-SNAPSHOT
3.25.3
diff --git a/src/main/java/io/camunda/connector/inbound/MyConnectorExecutable.java b/src/main/java/io/camunda/connector/inbound/MyConnectorExecutable.java
index cfa54e3..3bd05cd 100644
--- a/src/main/java/io/camunda/connector/inbound/MyConnectorExecutable.java
+++ b/src/main/java/io/camunda/connector/inbound/MyConnectorExecutable.java
@@ -1,10 +1,17 @@
package io.camunda.connector.inbound;
import io.camunda.connector.api.annotation.InboundConnector;
+import io.camunda.connector.api.inbound.CorrelationFailureHandlingStrategy.ForwardErrorToUpstream;
+import io.camunda.connector.api.inbound.CorrelationFailureHandlingStrategy.Ignore;
+import io.camunda.connector.api.inbound.CorrelationResult;
+import io.camunda.connector.api.inbound.CorrelationResult.Failure;
+import io.camunda.connector.api.inbound.CorrelationResult.Success;
import io.camunda.connector.api.inbound.InboundConnectorContext;
import io.camunda.connector.api.inbound.InboundConnectorExecutable;
import io.camunda.connector.inbound.subscription.MockSubscription;
import io.camunda.connector.inbound.subscription.MockSubscriptionEvent;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
@InboundConnector(name = "My Inbound Connector", type = "io.camunda:my-inbound-connector:1")
public class MyConnectorExecutable implements InboundConnectorExecutable {
@@ -13,6 +20,8 @@ public class MyConnectorExecutable implements InboundConnectorExecutable LOG.debug("Message correlated successfully");
+ case Failure failure -> {
+ switch (failure.handlingStrategy()) {
+ case ForwardErrorToUpstream ignored -> {
+ LOG.error("Correlation failed, reason: {}", failure.message());
+ // forward error to upstream
+ }
+ case Ignore ignored -> {
+ LOG.debug("Correlation failed but no action required, reason: {}", failure.message());
+ // ignore
+ }
+ }
+ }
+ }
}
@Override