Skip to content

Commit 23d6692

Browse files
Update Camel event registry models
1 parent c47582b commit 23d6692

4 files changed

Lines changed: 77 additions & 1 deletion

File tree

modules/flowable-event-registry-json-converter/src/main/java/org/flowable/eventregistry/json/converter/ChannelJsonConverter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
import java.util.List;
1919
import java.util.Map;
2020

21+
import org.flowable.eventregistry.model.CamelInboundChannelModel;
22+
import org.flowable.eventregistry.model.CamelOutboundChannelModel;
2123
import org.flowable.eventregistry.model.ChannelModel;
2224
import org.flowable.eventregistry.model.DelegateExpressionInboundChannelModel;
2325
import org.flowable.eventregistry.model.DelegateExpressionOutboundChannelModel;
@@ -58,11 +60,13 @@ protected void addDefaultChannelModelClasses() {
5860
addInboundChannelModelClass("jms", JmsInboundChannelModel.class);
5961
addInboundChannelModelClass("rabbit", RabbitInboundChannelModel.class);
6062
addInboundChannelModelClass("kafka", KafkaInboundChannelModel.class);
63+
addInboundChannelModelClass("camel", CamelInboundChannelModel.class);
6164
addInboundChannelModelClass("expression", DelegateExpressionInboundChannelModel.class);
6265

6366
addOutboundChannelModelClass("jms", JmsOutboundChannelModel.class);
6467
addOutboundChannelModelClass("rabbit", RabbitOutboundChannelModel.class);
6568
addOutboundChannelModelClass("kafka", KafkaOutboundChannelModel.class);
69+
addOutboundChannelModelClass("camel", CamelOutboundChannelModel.class);
6670
addOutboundChannelModelClass("expression", DelegateExpressionOutboundChannelModel.class);
6771
}
6872

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* Licensed under the Apache License, Version 2.0 (the "License");
2+
* you may not use this file except in compliance with the License.
3+
* You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software
8+
* distributed under the License is distributed on an "AS IS" BASIS,
9+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
* See the License for the specific language governing permissions and
11+
* limitations under the License.
12+
*/
13+
package org.flowable.eventregistry.model;
14+
15+
import com.fasterxml.jackson.annotation.JsonInclude;
16+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
17+
18+
19+
@JsonInclude(Include.NON_NULL)
20+
public class CamelInboundChannelModel extends InboundChannelModel {
21+
22+
protected String sourceUri;
23+
24+
public CamelInboundChannelModel() {
25+
super();
26+
setType("camel");
27+
}
28+
29+
public String getSourceUri() {
30+
return sourceUri;
31+
}
32+
33+
public void setSourceUri(String sourceUri) {
34+
this.sourceUri = sourceUri;
35+
}
36+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/* Licensed under the Apache License, Version 2.0 (the "License");
2+
* you may not use this file except in compliance with the License.
3+
* You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software
8+
* distributed under the License is distributed on an "AS IS" BASIS,
9+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
* See the License for the specific language governing permissions and
11+
* limitations under the License.
12+
*/
13+
package org.flowable.eventregistry.model;
14+
15+
import com.fasterxml.jackson.annotation.JsonInclude;
16+
import com.fasterxml.jackson.annotation.JsonInclude.Include;
17+
18+
19+
@JsonInclude(Include.NON_NULL)
20+
public class CamelOutboundChannelModel extends OutboundChannelModel {
21+
22+
protected String destination;
23+
24+
public CamelOutboundChannelModel() {
25+
super();
26+
setType("camel");
27+
}
28+
29+
public String getDestination() {
30+
return destination;
31+
}
32+
33+
public void setDestination(String destination) {
34+
this.destination = destination;
35+
}
36+
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<reactor-netty.version>1.1.15</reactor-netty.version>
2424
<jackson.version>2.15.3</jackson.version>
2525
<jakarta-jms.version>3.1.0</jakarta-jms.version>
26-
<camel.version>4.0.0</camel.version>
26+
<camel.version>4.7.0</camel.version>
2727
<cxf.version>4.0.2</cxf.version>
2828
<slf4j.version>2.0.11</slf4j.version>
2929
<groovy.version>4.0.17</groovy.version>

0 commit comments

Comments
 (0)