kaoto icon indicating copy to clipboard operation
kaoto copied to clipboard

Provide `route` name in `direct` node's label

Open lordrip opened this issue 1 year ago • 2 comments

Please describe the feature that you want to propose

In the case of a direct node, it would be beneficial to see the actual route name in the label.

In the following screenshot, the name's property value is start2, then the label could be direct: start2

image

lordrip avatar Feb 08 '24 10:02 lordrip

Just keep in mind that this is not the route name but the destination name for the direct endpoint. Your first route could for instance end with a direct endpoint called msgBox and then when defining your next new route you could start with another direct endpoint with the same name msgBox which would basically connect both routes. For such cases it would also make sense to pre-populate the name field (as drop down with direct edit capabilities) with all found direct endpoint names over all the routes. (consolidated to only have unique names) In a next step we could draw a connection between connected routes.

- route:
    id: route-1552
    from:
      id: from-3735
      uri: direct
      parameters:
        name: msgBox
      steps:
        - log:
            id: log-3963
            message: template message
- route:
    id: route-1607
    from:
      id: from-3857
      uri: timer
      parameters:
        period: "1000"
        timerName: template
      steps:
        - log:
            id: log-2780
            message: template message
        - to:
            id: to-6598
            uri: direct
            parameters:
              name: msgBox

lhein avatar Feb 13 '24 06:02 lhein

Raising the priority since it's a enhancement for visualization purposes

lordrip avatar Feb 21 '24 13:02 lordrip

Can we create a function that takes a step and then decides what to display individually for each step. Additionally whenever a "description" has been provided for a step, we should use the description instead.

lhein avatar Nov 11 '24 10:11 lhein

Yes, we have it already, it's here, it's just a matter of extending it to provide more tailored information.

lordrip avatar Nov 11 '24 13:11 lordrip