This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch loop
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/loop by this push:
new 2fc0d365baf CAMEL-21728: Loop EIP to have onPrepare processor
2fc0d365baf is described below
commit 2fc0d365baf5da5dc5ac455f2437106b3fb0891b
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Feb 6 10:03:23 2025 +0100
CAMEL-21728: Loop EIP to have onPrepare processor
---
.../src/generated/resources/org/apache/camel/catalog/models/loop.json | 2 +-
.../resources/org/apache/camel/catalog/schemas/camel-spring.xsd | 2 +-
.../src/generated/resources/META-INF/org/apache/camel/model/loop.json | 2 +-
.../src/main/java/org/apache/camel/model/LoopDefinition.java | 4 ++--
.../org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java | 2 +-
.../camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json | 2 +-
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/loop.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/loop.json
index f35c635910c..f89a70df2de 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/loop.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/loop.json
@@ -19,7 +19,7 @@
"copy": { "index": 4, "kind": "attribute", "displayName": "Copy", "group":
"advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "If the copy attribute
is true, a copy of the input Exchange is used for each iteration. That means
each iteration will start from a copy of the same message. By default loop will
loop the same exchange all over, [...]
"doWhile": { "index": 5, "kind": "attribute", "displayName": "Do While",
"group": "advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Enables the while loop
that loops until the predicate evaluates to false or null." },
"breakOnShutdown": { "index": 6, "kind": "attribute", "displayName":
"Break On Shutdown", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description": "If
the breakOnShutdown attribute is true, then the loop will not iterate until it
reaches the end when Camel is shut down." },
- "onPrepare": { "index": 7, "kind": "attribute", "displayName": "On
Prepare", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.camel.Processor", "deprecated": false,
"autowired": false, "secret": false, "description": "Uses the Processor when
preparing the org.apache.camel.Exchange for each loop iteration. This can be
used to deep-clone messages, or any custom logic needed before the looping
executes.." },
+ "onPrepare": { "index": 7, "kind": "attribute", "displayName": "On
Prepare", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.camel.Processor", "deprecated": false,
"autowired": false, "secret": false, "description": "Uses the Processor when
preparing the org.apache.camel.Exchange for each loop iteration. This can be
used to deep-clone messages, or any custom logic needed before the looping
executes." },
"outputs": { "index": 8, "kind": "element", "displayName": "Outputs",
"group": "common", "required": true, "type": "array", "javaType":
"java.util.List<org.apache.camel.model.ProcessorDefinition<java.lang.Object>>",
"oneOf": [ "aggregate", "bean", "choice", "circuitBreaker", "claimCheck",
"convertBodyTo", "convertHeaderTo", "convertVariableTo", "delay", "doCatch",
"doFinally", "doTry", "dynamicRouter", "enrich", "filter",
"idempotentConsumer", "intercept", "interceptFrom", "intercept [...]
},
"exchangeProperties": {
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
index 371a9d6610d..06008c197e7 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/schemas/camel-spring.xsd
@@ -7447,7 +7447,7 @@ down. Default value: false
<xs:documentation xml:lang="en">
<![CDATA[
Uses the Processor when preparing the org.apache.camel.Exchange for each loop
iteration. This can be used to deep-clone
-messages, or any custom logic needed before the looping executes..
+messages, or any custom logic needed before the looping executes.
]]>
</xs:documentation>
</xs:annotation>
diff --git
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/loop.json
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/loop.json
index f35c635910c..f89a70df2de 100644
---
a/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/loop.json
+++
b/core/camel-core-model/src/generated/resources/META-INF/org/apache/camel/model/loop.json
@@ -19,7 +19,7 @@
"copy": { "index": 4, "kind": "attribute", "displayName": "Copy", "group":
"advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "If the copy attribute
is true, a copy of the input Exchange is used for each iteration. That means
each iteration will start from a copy of the same message. By default loop will
loop the same exchange all over, [...]
"doWhile": { "index": 5, "kind": "attribute", "displayName": "Do While",
"group": "advanced", "label": "advanced", "required": false, "type": "boolean",
"javaType": "java.lang.Boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Enables the while loop
that loops until the predicate evaluates to false or null." },
"breakOnShutdown": { "index": 6, "kind": "attribute", "displayName":
"Break On Shutdown", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description": "If
the breakOnShutdown attribute is true, then the loop will not iterate until it
reaches the end when Camel is shut down." },
- "onPrepare": { "index": 7, "kind": "attribute", "displayName": "On
Prepare", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.camel.Processor", "deprecated": false,
"autowired": false, "secret": false, "description": "Uses the Processor when
preparing the org.apache.camel.Exchange for each loop iteration. This can be
used to deep-clone messages, or any custom logic needed before the looping
executes.." },
+ "onPrepare": { "index": 7, "kind": "attribute", "displayName": "On
Prepare", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.camel.Processor", "deprecated": false,
"autowired": false, "secret": false, "description": "Uses the Processor when
preparing the org.apache.camel.Exchange for each loop iteration. This can be
used to deep-clone messages, or any custom logic needed before the looping
executes." },
"outputs": { "index": 8, "kind": "element", "displayName": "Outputs",
"group": "common", "required": true, "type": "array", "javaType":
"java.util.List<org.apache.camel.model.ProcessorDefinition<java.lang.Object>>",
"oneOf": [ "aggregate", "bean", "choice", "circuitBreaker", "claimCheck",
"convertBodyTo", "convertHeaderTo", "convertVariableTo", "delay", "doCatch",
"doFinally", "doTry", "dynamicRouter", "enrich", "filter",
"idempotentConsumer", "intercept", "interceptFrom", "intercept [...]
},
"exchangeProperties": {
diff --git
a/core/camel-core-model/src/main/java/org/apache/camel/model/LoopDefinition.java
b/core/camel-core-model/src/main/java/org/apache/camel/model/LoopDefinition.java
index 1df8704680c..30d0f3f5428 100644
---
a/core/camel-core-model/src/main/java/org/apache/camel/model/LoopDefinition.java
+++
b/core/camel-core-model/src/main/java/org/apache/camel/model/LoopDefinition.java
@@ -96,7 +96,7 @@ public class LoopDefinition extends OutputExpressionNode {
/**
* Uses the {@link Processor} when preparing the {@link
org.apache.camel.Exchange} for each loop iteration. This can
- * be used to deep-clone messages, or any custom logic needed before the
looping executes..
+ * be used to deep-clone messages, or any custom logic needed before the
looping executes.
*
* @param onPrepare reference to the processor to lookup in the {@link
org.apache.camel.spi.Registry}
* @return the builder
@@ -108,7 +108,7 @@ public class LoopDefinition extends OutputExpressionNode {
/**
* Uses the {@link Processor} when preparing the {@link
org.apache.camel.Exchange} for each loop iteration. This can
- * be used to deep-clone messages, or any custom logic needed before the
looping executes..
+ * be used to deep-clone messages, or any custom logic needed before the
looping executes.
*
* @param onPrepare reference to the processor to lookup in the {@link
org.apache.camel.spi.Registry}
* @return the builder
diff --git
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
index cc484d0f430..5fbdc56df6f 100644
---
a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
+++
b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/ModelDeserializers.java
@@ -9545,7 +9545,7 @@ public final class ModelDeserializers extends
YamlDeserializerSupport {
@YamlProperty(name = "doWhile", type = "boolean",
description = "Enables the while loop that loops until the predicate evaluates
to false or null.", displayName = "Do While"),
@YamlProperty(name = "expression", type =
"object:org.apache.camel.model.language.ExpressionDefinition", description =
"Expression to define how many times we should loop. Notice the expression is
only evaluated once, and should return a number as how many times to loop. A
value of zero or negative means no looping. The loop is like a for-loop
fashion, if you want a while loop, then the dynamic router may be a better
choice.", displayName = "Expression", oneOf = "expr [...]
@YamlProperty(name = "id", type = "string", description =
"Sets the id of this node", displayName = "Id"),
- @YamlProperty(name = "onPrepare", type = "string",
description = "Uses the Processor when preparing the org.apache.camel.Exchange
for each loop iteration. This can be used to deep-clone messages, or any custom
logic needed before the looping executes..", displayName = "On Prepare"),
+ @YamlProperty(name = "onPrepare", type = "string",
description = "Uses the Processor when preparing the org.apache.camel.Exchange
for each loop iteration. This can be used to deep-clone messages, or any custom
logic needed before the looping executes.", displayName = "On Prepare"),
@YamlProperty(name = "steps", type =
"array:org.apache.camel.model.ProcessorDefinition")
}
)
diff --git
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
index 8fe3f70b0b0..7deecd56aaf 100644
---
a/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
+++
b/dsl/camel-yaml-dsl/camel-yaml-dsl/src/generated/resources/schema/camelYamlDsl.json
@@ -2778,7 +2778,7 @@
"onPrepare" : {
"type" : "string",
"title" : "On Prepare",
- "description" : "Uses the Processor when preparing the
org.apache.camel.Exchange for each loop iteration. This can be used to
deep-clone messages, or any custom logic needed before the looping executes.."
+ "description" : "Uses the Processor when preparing the
org.apache.camel.Exchange for each loop iteration. This can be used to
deep-clone messages, or any custom logic needed before the looping executes."
},
"steps" : {
"type" : "array",