This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new ecbd676dda4c CAMEL-23832: camel-saga - improve the component and
option descriptions (#30968)
ecbd676dda4c is described below
commit ecbd676dda4ca837b8d13d0d2af649a17b86fa0b
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 11:28:58 2026 +0100
CAMEL-23832: camel-saga - improve the component and option descriptions
(#30968)
This commit rewrites the component description, the text of the action path
option and the text of the
Long-Running-Action header. The component description now says that the
component completes or compensates the saga
of the exchange. The header text says that it holds the saga id and when
the producer reads it, which the old text
("The long running action") did not.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-saga is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/catalog/components/saga.json | 6 ++---
.../apache/camel/catalog/docs/saga-component.adoc | 2 +-
.../org/apache/camel/component/saga/saga.json | 6 ++---
.../camel-saga/src/main/docs/saga-component.adoc | 2 +-
.../apache/camel/component/saga/SagaConstants.java | 5 +++-
.../apache/camel/component/saga/SagaEndpoint.java | 6 +++--
.../component/ComponentsBuilderFactory.java | 3 ++-
.../component/dsl/SagaComponentBuilderFactory.java | 6 +++--
.../builder/endpoint/EndpointHeaderBuilders.java | 3 ++-
.../builder/endpoint/StaticEndpointBuilders.java | 16 +++++++++----
.../endpoint/dsl/SagaEndpointBuilderFactory.java | 27 ++++++++++++++++------
tasks/component-descriptions.md | 2 +-
12 files changed, 57 insertions(+), 27 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/saga.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/saga.json
index 4cbb6523d400..4863682b3f4e 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/saga.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/saga.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "saga",
"title": "Saga",
- "description": "Execute custom actions within a route using the Saga EIP.",
+ "description": "Complete or compensate the saga that an exchange takes
part in through the Saga EIP.",
"deprecated": false,
"firstVersion": "2.21.0",
"label": "clustering",
@@ -28,14 +28,14 @@
"autowiredEnabled": { "index": 1, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
- "Long-Running-Action": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
long running action", "constantName":
"org.apache.camel.component.saga.SagaConstants#SAGA_LONG_RUNNING_ACTION" }
+ "Long-Running-Action": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
id of the saga, which the Saga EIP sets on the message. The producer reads it
only when the exchange is not bound to a saga and the saga service carries the
id in this header, as the LRA saga service does.", "constantName":
"org.apache.camel.component.saga.Saga [...]
},
"bodyTypes": {
"producerIn": { "carriers": [ "any" ] },
"producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged:
the saga service calls the completion or compensation endpoints with messages
of its own" }
},
"properties": {
- "action": { "index": 0, "kind": "path", "displayName": "Action", "group":
"producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.saga.SagaEndpoint.SagaEndpointAction", "enum": [
"COMPLETE", "COMPENSATE" ], "deprecated": false, "autowired": false, "secret":
false, "description": "Action to execute (complete or compensate)" },
+ "action": { "index": 0, "kind": "path", "displayName": "Action", "group":
"producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.saga.SagaEndpoint.SagaEndpointAction", "enum": [
"COMPLETE", "COMPENSATE" ], "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to complete or to compensate the saga that the
exchange takes part in. The saga service then calls the completion or the
compensation endpoint of the saga. [...]
"lazyStartProducer": { "index": 1, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-component.adoc
index 296346b3e071..10e4bbd76726 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Saga
:shortname: saga
:artifactid: camel-saga
-:description: Execute custom actions within a route using the Saga EIP.
+:description: Complete or compensate the saga that an exchange takes part in
through the Saga EIP.
:since: 2.21
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-saga/src/generated/resources/META-INF/org/apache/camel/component/saga/saga.json
b/components/camel-saga/src/generated/resources/META-INF/org/apache/camel/component/saga/saga.json
index 4cbb6523d400..4863682b3f4e 100644
---
a/components/camel-saga/src/generated/resources/META-INF/org/apache/camel/component/saga/saga.json
+++
b/components/camel-saga/src/generated/resources/META-INF/org/apache/camel/component/saga/saga.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "saga",
"title": "Saga",
- "description": "Execute custom actions within a route using the Saga EIP.",
+ "description": "Complete or compensate the saga that an exchange takes
part in through the Saga EIP.",
"deprecated": false,
"firstVersion": "2.21.0",
"label": "clustering",
@@ -28,14 +28,14 @@
"autowiredEnabled": { "index": 1, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"Whether autowiring is enabled. This is used for automatic autowiring options
(the option must be marked as autowired) by looking up in the registry to find
if there is a single instance of matching t [...]
},
"headers": {
- "Long-Running-Action": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
long running action", "constantName":
"org.apache.camel.component.saga.SagaConstants#SAGA_LONG_RUNNING_ACTION" }
+ "Long-Running-Action": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
id of the saga, which the Saga EIP sets on the message. The producer reads it
only when the exchange is not bound to a saga and the saga service carries the
id in this header, as the LRA saga service does.", "constantName":
"org.apache.camel.component.saga.Saga [...]
},
"bodyTypes": {
"producerIn": { "carriers": [ "any" ] },
"producerOut": { "carriers": [ "unchanged" ], "description": "Unchanged:
the saga service calls the completion or compensation endpoints with messages
of its own" }
},
"properties": {
- "action": { "index": 0, "kind": "path", "displayName": "Action", "group":
"producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.saga.SagaEndpoint.SagaEndpointAction", "enum": [
"COMPLETE", "COMPENSATE" ], "deprecated": false, "autowired": false, "secret":
false, "description": "Action to execute (complete or compensate)" },
+ "action": { "index": 0, "kind": "path", "displayName": "Action", "group":
"producer", "label": "", "required": true, "type": "enum", "javaType":
"org.apache.camel.component.saga.SagaEndpoint.SagaEndpointAction", "enum": [
"COMPLETE", "COMPENSATE" ], "deprecated": false, "autowired": false, "secret":
false, "description": "Whether to complete or to compensate the saga that the
exchange takes part in. The saga service then calls the completion or the
compensation endpoint of the saga. [...]
"lazyStartProducer": { "index": 1, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the producer should be started
lazy (on the first message). By starting lazy you can use this to allow
CamelContext and routes to startup in situations where a produc [...]
}
}
diff --git a/components/camel-saga/src/main/docs/saga-component.adoc
b/components/camel-saga/src/main/docs/saga-component.adoc
index 296346b3e071..10e4bbd76726 100644
--- a/components/camel-saga/src/main/docs/saga-component.adoc
+++ b/components/camel-saga/src/main/docs/saga-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Saga
:shortname: saga
:artifactid: camel-saga
-:description: Execute custom actions within a route using the Saga EIP.
+:description: Complete or compensate the saga that an exchange takes part in
through the Saga EIP.
:since: 2.21
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaConstants.java
b/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaConstants.java
index fc1d10bd52c4..97b58a6d7636 100644
---
a/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaConstants.java
+++
b/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaConstants.java
@@ -21,7 +21,10 @@ import org.apache.camel.spi.Metadata;
public final class SagaConstants {
- @Metadata(description = "The long running action", javaType = "String")
+ @Metadata(description = "The id of the saga, which the Saga EIP sets on
the message. The producer reads it only when the"
+ + " exchange is not bound to a saga and the saga
service carries the id in this header, as the"
+ + " LRA saga service does.",
+ javaType = "String")
public static final String SAGA_LONG_RUNNING_ACTION =
Exchange.SAGA_LONG_RUNNING_ACTION;
private SagaConstants() {
diff --git
a/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaEndpoint.java
b/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaEndpoint.java
index e4fa071904eb..100c84e8887e 100644
---
a/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaEndpoint.java
+++
b/components/camel-saga/src/main/java/org/apache/camel/component/saga/SagaEndpoint.java
@@ -30,7 +30,7 @@ import org.apache.camel.support.DefaultEndpoint;
import org.apache.camel.util.ObjectHelper;
/**
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through the
Saga EIP.
*/
@UriEndpoint(firstVersion = "2.21.0", scheme = "saga", title = "Saga", syntax
= "saga:action", producerOnly = true,
category = { Category.CLUSTERING }, headersClass =
SagaConstants.class)
@@ -45,7 +45,9 @@ public class SagaEndpoint extends DefaultEndpoint {
COMPENSATE
}
- @UriPath(description = "Action to execute (complete or compensate)")
+ @UriPath(description = "Whether to complete or to compensate the saga that
the exchange takes part in. The saga service"
+ + " then calls the completion or the compensation
endpoint of the saga. The exchange fails if it"
+ + " does not take part in a saga.")
@Metadata(required = true)
private final SagaEndpointAction action;
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 7cd52ee3789c..92894f6b9098 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -4550,7 +4550,8 @@ public interface ComponentsBuilderFactory {
}
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through
+ * the Saga EIP.
*
* Category: clustering
* Since: 2.21
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SagaComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SagaComponentBuilderFactory.java
index d800149d5704..9a612644e11b 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SagaComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SagaComponentBuilderFactory.java
@@ -24,7 +24,8 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.saga.SagaComponent;
/**
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through the
+ * Saga EIP.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +34,8 @@ public interface SagaComponentBuilderFactory {
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through
+ * the Saga EIP.
*
* Category: clustering
* Since: 2.21
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 851e543a1d49..495bf3b793a2 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -3671,7 +3671,8 @@ public class EndpointHeaderBuilders {
}
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through
+ * the Saga EIP.
*
* Category: clustering
* Since: 2.21
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 775eebf0de88..6483e89b28a3 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -15258,7 +15258,8 @@ public class StaticEndpointBuilders {
}
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through
+ * the Saga EIP.
*
* Category: clustering
* Since: 2.21
@@ -15267,7 +15268,10 @@ public class StaticEndpointBuilders {
* Syntax: <code>saga:action</code>
*
* Path parameter: action (required)
- * Action to execute (complete or compensate)
+ * Whether to complete or to compensate the saga that the exchange takes
+ * part in. The saga service then calls the completion or the compensation
+ * endpoint of the saga. The exchange fails if it does not take part in a
+ * saga.
* There are 2 enums and the value can be one of: COMPLETE, COMPENSATE
*
* @param path action
@@ -15278,7 +15282,8 @@ public class StaticEndpointBuilders {
}
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through
+ * the Saga EIP.
*
* Category: clustering
* Since: 2.21
@@ -15287,7 +15292,10 @@ public class StaticEndpointBuilders {
* Syntax: <code>saga:action</code>
*
* Path parameter: action (required)
- * Action to execute (complete or compensate)
+ * Whether to complete or to compensate the saga that the exchange takes
+ * part in. The saga service then calls the completion or the compensation
+ * endpoint of the saga. The exchange fails if it does not take part in a
+ * saga.
* There are 2 enums and the value can be one of: COMPLETE, COMPENSATE
*
* @param componentName to use a custom component name for the endpoint
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SagaEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SagaEndpointBuilderFactory.java
index e25cd272f7b2..d6f1e2c9e487 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SagaEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SagaEndpointBuilderFactory.java
@@ -27,7 +27,8 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in through the
+ * Saga EIP.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -107,7 +108,8 @@ public interface SagaEndpointBuilderFactory {
public interface SagaBuilders {
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in
+ * through the Saga EIP.
*
* Category: clustering
* Since: 2.21
@@ -120,7 +122,8 @@ public interface SagaEndpointBuilderFactory {
}
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in
+ * through the Saga EIP.
*
* Category: clustering
* Since: 2.21
@@ -129,7 +132,10 @@ public interface SagaEndpointBuilderFactory {
* Syntax: <code>saga:action</code>
*
* Path parameter: action (required)
- * Action to execute (complete or compensate)
+ * Whether to complete or to compensate the saga that the exchange
takes
+ * part in. The saga service then calls the completion or the
+ * compensation endpoint of the saga. The exchange fails if it does not
+ * take part in a saga.
* There are 2 enums and the value can be one of: COMPLETE, COMPENSATE
*
* @param path action
@@ -140,7 +146,8 @@ public interface SagaEndpointBuilderFactory {
}
/**
* Saga (camel-saga)
- * Execute custom actions within a route using the Saga EIP.
+ * Complete or compensate the saga that an exchange takes part in
+ * through the Saga EIP.
*
* Category: clustering
* Since: 2.21
@@ -149,7 +156,10 @@ public interface SagaEndpointBuilderFactory {
* Syntax: <code>saga:action</code>
*
* Path parameter: action (required)
- * Action to execute (complete or compensate)
+ * Whether to complete or to compensate the saga that the exchange
takes
+ * part in. The saga service then calls the completion or the
+ * compensation endpoint of the saga. The exchange fails if it does not
+ * take part in a saga.
* There are 2 enums and the value can be one of: COMPLETE, COMPENSATE
*
* @param componentName to use a custom component name for the endpoint
@@ -173,7 +183,10 @@ public interface SagaEndpointBuilderFactory {
public static final SagaHeaderNameBuilder INSTANCE = new
SagaHeaderNameBuilder();
/**
- * The long running action.
+ * The id of the saga, which the Saga EIP sets on the message. The
+ * producer reads it only when the exchange is not bound to a saga and
+ * the saga service carries the id in this header, as the LRA saga
+ * service does.
*
* The option is a: {@code String} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index c599b54dac60..c4e00aebad3c 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -323,7 +323,7 @@ or removes its row.
| camel-robotframework | robotframework | |
| camel-rocketmq | rocketmq | |
| camel-rss | rss | |
-| camel-saga | saga | |
+| camel-saga | saga | yes |
| camel-salesforce | salesforce | |
| camel-sap-netweaver | sap-netweaver | |
| camel-saxon | xquery | |