Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Add a name to a flow #634

Closed
skin27 opened this issue Apr 28, 2023 · 0 comments · Fixed by #706
Closed

Add a name to a flow #634

skin27 opened this issue Apr 28, 2023 · 0 comments · Fixed by #706
Assignees
Milestone

Comments

@skin27
Copy link

skin27 commented Apr 28, 2023

Please describe the feature that you want to propose

Currently, a flow in Kaoto doesn't have a name. It would be nice if the flow has a name by default.

Current generated code (Camel YAML DSL):

- from:
    uri: file:C:\messages\in
    steps:
    - to:
        uri: log:MyLogger
    - to:
        uri: file:C:\messages\out

This could be:

- route:
    id: route-0d88
    from:
      uri: file:C:\messages\in
      steps:
      - to:
          uri: log:MyLogger
      - to:
          uri: file:C:\messages\out

The user may give it a name (in the gui), but it can be generated (similar to karavan). The format is then also the same as karavan.

This can also help in the future when using it as an integration. Because then you can manage integrations with multiple flows:


apiVersion: camel.apache.org/v1
kind: Integration
metadata:
  name: myintegration
spec:
  flows:
  - route:
	  id: route-1
	  from:
	    uri: file:C:\messages\in
	    steps:
	    - to:
		    uri: log:MyLogger
	    - to:
		    uri: file:C:\messages\out
  - route:
	  id: route-1
	  from:
	    uri: file:C:\messages\in2
	    steps:
	    - to:
		    uri: log:MyLogger2
	    - to:
		    uri: file:C:\messages\out2
@lordrip lordrip transferred this issue from KaotoIO/kaoto-ui May 2, 2023
@lhein lhein added this to the 1.1.0 milestone May 4, 2023
@Delawen Delawen self-assigned this Jun 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants