Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

There's some way to generate diagrams for spring integration dsl flows?

I have a running app that defines some spring integration flows with inbound/outbound gateways, splitters, aggregators,routers and etc...

These flows are all created using spring integration dsl and annotations... so no XML's.

There is any tool out there that can generate the EE patterns diagrams for it?

This question states that Intellij can do it for xml configurations... I want something similar that works with dsl IntegrationFlow's

like image 591
Lucas Oliveira Avatar asked Dec 18 '17 13:12

Lucas Oliveira


People also ask

What is DSL in Spring Integration?

The Java DSL for Spring Integration is essentially a facade for Spring Integration. The DSL provides a simple way to embed Spring Integration Message Flows into your application by using the fluent Builder pattern together with existing Java configuration from Spring Framework and Spring Integration.

How does Spring integration work?

Spring Integration enables lightweight messaging within Spring-based applications and supports integration with external systems via declarative adapters. Those adapters provide a higher-level of abstraction over Spring's support for remoting, messaging, and scheduling.

What is spring Flo?

Spring Flo is a JavaScript library that offers a basic embeddable HTML5 visual builder for pipelines and simple graphs. This library is used as the basis of the stream builder in Spring Cloud Data Flow.


1 Answers

There is Spring Flo project and based on its foundation we have expose the IntegrationGraphController with the Graph tree to represent integration flows as JSON. That model can be used to visualize realtime of your application.

In addition we have a sample application with the mentioned functionality.

EDIT

The spring-flo project is in the process of being migrated to angular 4/5.

To build and run the viewer:

git checkout angular-1.x
cd samples/spring-flo-si
mvn clean package
java -jar target/spring-flo-sample-si-0.0.1.BUILD-SNAPSHOT.jar

In a browser go to http://localhost:8082 and enter the URL for your app that has the integration graph enabled; click Load.

Enabling the graph endpoint is documented here.

like image 168
Artem Bilan Avatar answered Oct 18 '22 01:10

Artem Bilan