Skip to content

allow app parameters to be defined by spel #91

Open

Description

@parisni

currently app parameters are statics. Would be nice to allow spel to generate the parameters.

  parameters:
    definitions:
      - id: myParameter
    value-sets:
      - values:
          myParameter: #{myCsvList}

Activity

  1. LEDfan commented on Oct 28, 2024

    @LEDfan
    Member

    We could add this feature, but it would be good to know how you would this feature.
    What values would you use in the SpEL expressions? The parameters must be generated before the app is started, therefore the only input to the SpEL expression would be the information of the current user. Would this be sufficient?

  2. parisni commented on Nov 14, 2024

    @parisni
    Author

    What values would you use in the SpEL expressions? The parameters must be generated before the app is started, therefore the only input to the SpEL expression would be the information of the current user. Would this be sufficient?

    I guess so ! The use case is "project management". Currently we set users to "projects" by using SP groups. People in the same project share some volumes. Also users can be in multiple groups.

    We d'like users to be able to select a group before starting the app. So app parameters with a spell expression would allow to generate a form with every groups a given user belongs to.

    And from the limitations you mentions, I guess this is compatible.

    BTW I would be glad to propose a PR on this, but it sounds like tricky to turn the current implementation into a spel compatible one. Isn'it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions