This is an automated email from the ASF dual-hosted git repository. marat pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
The following commit(s) were added to refs/heads/main by this push: new 300bfa0c topology 300bfa0c is described below commit 300bfa0c60c32f98d28f497ffd8af4cca8fd9265 Author: Marat Gubaidullin <ma...@talismancloud.io> AuthorDate: Thu Jul 11 10:52:29 2024 -0400 topology --- karavan-designer/public/example/demo.camel.yaml | 46 +++---------------------- karavan-designer/src/topology/TopologyApi.tsx | 2 +- 2 files changed, 5 insertions(+), 43 deletions(-) diff --git a/karavan-designer/public/example/demo.camel.yaml b/karavan-designer/public/example/demo.camel.yaml index a1df214f..c41432b0 100644 --- a/karavan-designer/public/example/demo.camel.yaml +++ b/karavan-designer/public/example/demo.camel.yaml @@ -14,7 +14,7 @@ message: "ERROR: ${exception}" - route: id: route-c11a - description: From Warehouse + description: From nodePrefixId: route-ae1 autoStartup: true from: @@ -27,10 +27,6 @@ autoCommitEnable: true consumerGroup: lightstep steps: - - log: - id: log-c7b9 - description: Log request - message: "Received command: ${body}, current sequence: ${variable.sequence}" - setVariable: id: setVariable-61a9 description: Set command @@ -46,52 +42,20 @@ groovy: id: groovy-bb4f expression: >- - def seq = String.format("%03d", - camelContext.getVariable("sequence")); - - def length = String.format("%04d", - variables.command.length()); - - return String.valueOf((char)0x02) - .concat(seq) - .concat(length) - .concat(variables.command) - .concat(String.valueOf((char)0x03)); - log: id: log-7190 description: Log message message: "Message: ${body}" - to: id: to-bb55 - description: Call Controller + description: Call uri: netty parameters: protocol: tcp - host: 208.167.255.177 - port: "15003" - disconnect: false - keepAlive: false - requestTimeout: "10000" - useByteBuf: false - autoAppendDelimiter: true - allowDefaultCodec: true - reuseAddress: true - - setVariable: - id: setVariable-048c - description: Update sequence - name: global:sequence - expression: - simple: - id: simple-340f - expression: ${variable.sequence} + 1 - - log: - id: log-b944 - description: Log result - message: "Response: ${body}, next sequence: ${variable.sequence}" - route: id: route-42e3 - description: Events from JunctionBox + description: Events from box nodePrefixId: route-de0 autoStartup: false from: @@ -100,9 +64,7 @@ uri: netty parameters: protocol: tcp - host: 208.167.255.177 - port: "15003" - clientMode: true + steps: - log: id: log-63db diff --git a/karavan-designer/src/topology/TopologyApi.tsx b/karavan-designer/src/topology/TopologyApi.tsx index 174ad6a6..b297b186 100644 --- a/karavan-designer/src/topology/TopologyApi.tsx +++ b/karavan-designer/src/topology/TopologyApi.tsx @@ -82,13 +82,13 @@ export function getRoutes(tins: TopologyRouteNode[]): NodeModel[] { width: NODE_DIAMETER, height: NODE_DIAMETER, shape: NodeShape.rect, - status: NodeStatus.default, data: { isAlternate: false, type: 'route', icon: 'route', step: tin.route, routeId: tin.routeId, + autoStartup: tin.route.autoStartup !== false, fileName: tin.fileName, } }