Skip to content

Commit

Permalink
feat(kafka,sqs): support inbound connector deduplication (#2340)
Browse files Browse the repository at this point in the history
  • Loading branch information
chillleader committed Apr 25, 2024
1 parent 7398b7e commit 2002bb1
Show file tree
Hide file tree
Showing 14 changed files with 774 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
}, {
"id" : "correlation",
"label" : "Correlation"
}, {
"id" : "deduplication",
"label" : "Deduplication",
"tooltip" : "Deduplication allows you to configure multiple inbound connector elements to reuse the same backend (consumer/thread/endpoint) by sharing the same deduplication ID."
}, {
"id" : "output",
"label" : "Output mapping"
Expand Down Expand Up @@ -246,6 +250,66 @@
"type" : "bpmn:Message#property"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeManualFlag",
"label" : "Manual mode",
"description" : "By default, similar connectors receive the same deduplication ID. Customize by activating manual mode",
"value" : false,
"group" : "deduplication",
"binding" : {
"name" : "deduplicationModeManualFlag",
"type" : "zeebe:property"
},
"type" : "Boolean"
}, {
"id" : "deduplicationId",
"label" : "Deduplication ID",
"constraints" : {
"notEmpty" : true,
"pattern" : {
"value" : "^[a-zA-Z0-9_-]+$",
"message" : "Only alphanumeric characters, dashes, and underscores are allowed"
}
},
"group" : "deduplication",
"binding" : {
"name" : "deduplicationId",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationModeManualFlag",
"equals" : true,
"type" : "simple"
},
"type" : "String"
}, {
"id" : "deduplicationModeManual",
"value" : "MANUAL",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : true,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeAuto",
"value" : "AUTO",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : false,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "resultVariable",
"label" : "Result variable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
}, {
"id" : "correlation",
"label" : "Correlation"
}, {
"id" : "deduplication",
"label" : "Deduplication",
"tooltip" : "Deduplication allows you to configure multiple inbound connector elements to reuse the same backend (consumer/thread/endpoint) by sharing the same deduplication ID."
}, {
"id" : "output",
"label" : "Output mapping"
Expand Down Expand Up @@ -246,6 +250,66 @@
"type" : "bpmn:Message#property"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeManualFlag",
"label" : "Manual mode",
"description" : "By default, similar connectors receive the same deduplication ID. Customize by activating manual mode",
"value" : false,
"group" : "deduplication",
"binding" : {
"name" : "deduplicationModeManualFlag",
"type" : "zeebe:property"
},
"type" : "Boolean"
}, {
"id" : "deduplicationId",
"label" : "Deduplication ID",
"constraints" : {
"notEmpty" : true,
"pattern" : {
"value" : "^[a-zA-Z0-9_-]+$",
"message" : "Only alphanumeric characters, dashes, and underscores are allowed"
}
},
"group" : "deduplication",
"binding" : {
"name" : "deduplicationId",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationModeManualFlag",
"equals" : true,
"type" : "simple"
},
"type" : "String"
}, {
"id" : "deduplicationModeManual",
"value" : "MANUAL",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : true,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeAuto",
"value" : "AUTO",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : false,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "resultVariable",
"label" : "Result variable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
}, {
"id" : "activation",
"label" : "Activation"
}, {
"id" : "deduplication",
"label" : "Deduplication",
"tooltip" : "Deduplication allows you to configure multiple inbound connector elements to reuse the same backend (consumer/thread/endpoint) by sharing the same deduplication ID."
}, {
"id" : "output",
"label" : "Output mapping"
Expand Down Expand Up @@ -191,6 +195,66 @@
"type" : "zeebe:property"
},
"type" : "String"
}, {
"id" : "deduplicationModeManualFlag",
"label" : "Manual mode",
"description" : "By default, similar connectors receive the same deduplication ID. Customize by activating manual mode",
"value" : false,
"group" : "deduplication",
"binding" : {
"name" : "deduplicationModeManualFlag",
"type" : "zeebe:property"
},
"type" : "Boolean"
}, {
"id" : "deduplicationId",
"label" : "Deduplication ID",
"constraints" : {
"notEmpty" : true,
"pattern" : {
"value" : "^[a-zA-Z0-9_-]+$",
"message" : "Only alphanumeric characters, dashes, and underscores are allowed"
}
},
"group" : "deduplication",
"binding" : {
"name" : "deduplicationId",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationModeManualFlag",
"equals" : true,
"type" : "simple"
},
"type" : "String"
}, {
"id" : "deduplicationModeManual",
"value" : "MANUAL",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : true,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeAuto",
"value" : "AUTO",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : false,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "resultVariable",
"label" : "Result variable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
}, {
"id" : "correlation",
"label" : "Correlation"
}, {
"id" : "deduplication",
"label" : "Deduplication",
"tooltip" : "Deduplication allows you to configure multiple inbound connector elements to reuse the same backend (consumer/thread/endpoint) by sharing the same deduplication ID."
}, {
"id" : "output",
"label" : "Output mapping"
Expand Down Expand Up @@ -274,6 +278,66 @@
"type" : "bpmn:Message#property"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeManualFlag",
"label" : "Manual mode",
"description" : "By default, similar connectors receive the same deduplication ID. Customize by activating manual mode",
"value" : false,
"group" : "deduplication",
"binding" : {
"name" : "deduplicationModeManualFlag",
"type" : "zeebe:property"
},
"type" : "Boolean"
}, {
"id" : "deduplicationId",
"label" : "Deduplication ID",
"constraints" : {
"notEmpty" : true,
"pattern" : {
"value" : "^[a-zA-Z0-9_-]+$",
"message" : "Only alphanumeric characters, dashes, and underscores are allowed"
}
},
"group" : "deduplication",
"binding" : {
"name" : "deduplicationId",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationModeManualFlag",
"equals" : true,
"type" : "simple"
},
"type" : "String"
}, {
"id" : "deduplicationModeManual",
"value" : "MANUAL",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : true,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeAuto",
"value" : "AUTO",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : false,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "resultVariable",
"label" : "Result variable",
Expand Down
3 changes: 3 additions & 0 deletions connectors/aws/aws-sqs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
<templateFileName>aws-sqs-boundary-connector.json</templateFileName>
</file>
</files>
<features>
<INBOUND_DEDUPLICATION>true</INBOUND_DEDUPLICATION>
</features>
</connector>
</connectors>
<includeDependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
}, {
"id" : "correlation",
"label" : "Correlation"
}, {
"id" : "deduplication",
"label" : "Deduplication",
"tooltip" : "Deduplication allows you to configure multiple inbound connector elements to reuse the same backend (consumer/thread/endpoint) by sharing the same deduplication ID."
}, {
"id" : "output",
"label" : "Output mapping"
Expand Down Expand Up @@ -279,6 +283,66 @@
"type" : "bpmn:Message#property"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeManualFlag",
"label" : "Manual mode",
"description" : "By default, similar connectors receive the same deduplication ID. Customize by activating manual mode",
"value" : false,
"group" : "deduplication",
"binding" : {
"name" : "deduplicationModeManualFlag",
"type" : "zeebe:property"
},
"type" : "Boolean"
}, {
"id" : "deduplicationId",
"label" : "Deduplication ID",
"constraints" : {
"notEmpty" : true,
"pattern" : {
"value" : "^[a-zA-Z0-9_-]+$",
"message" : "Only alphanumeric characters, dashes, and underscores are allowed"
}
},
"group" : "deduplication",
"binding" : {
"name" : "deduplicationId",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationModeManualFlag",
"equals" : true,
"type" : "simple"
},
"type" : "String"
}, {
"id" : "deduplicationModeManual",
"value" : "MANUAL",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : true,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "deduplicationModeAuto",
"value" : "AUTO",
"group" : "deduplication",
"binding" : {
"name" : "deduplicationMode",
"type" : "zeebe:property"
},
"condition" : {
"property" : "deduplicationId",
"isActive" : false,
"type" : "simple"
},
"type" : "Hidden"
}, {
"id" : "resultVariable",
"label" : "Result variable",
Expand Down

0 comments on commit 2002bb1

Please sign in to comment.