Replies: 2 comments 4 replies
-
Thought I'd try github discussions and move it here. First thanks for trying this part of a shell! Is your problem trying to make a large flow out of all this or somehow trying to do something in a |
Beta Was this translation helpful? Give feedback.
-
ping @Drevsh if you didn't realise this got moved to discussions. To get you some more ideas, there is one real world example how this flow can be used. There is an experimental project https://github.com/spring-projects-experimental/spring-cli which has a command It uses While result from a component is usually added to a shared context, it's also possible to manually add "stuff" to shared context to get used in later steps. For that there is a I'm curious to hear more about your use cases as conditional steps are currently a bit naive as this is a first version of these components and flow system. Also remember that you don't need flow to use components as those are independent. Flow was mostly created because using a multiple components together needs a quite a bit of low level plumping for things to work together. |
Beta Was this translation helpful? Give feedback.
-
I have q question regarding conditional rendering of a previous step result and whether something like this is possible.
I want to display MulitItemSelection/StringInput based a on SingleItemSelection executed in a the same component flow.
The idea I had is that a parse a selection of some services I have (via a "parse" command). After that I have another command ("configure") which shows the user a SingleItemSelection with all the services which have been parsed. The user can select a service which he wants to configure. After the selection multiple questions are asked how the service should be configured. Some of the questions/configuration need to be based on the parsed service definition. For example some services can be backed up while others can't and only for that services a ConfirmationInput should be shown. While this can be done via .next(ctx -> void) I'm also in need to access/retrieve actual data from the service selected in the selection. (i.e. to enabled/edit certain arguments)
Is anything like this supported in the ComponentFlowBuilder? Or would I need to create a sequence of normal component inputs and extract the result item before creating the next step?
I hope the image helps:

Beta Was this translation helpful? Give feedback.
All reactions