elsa-workflows / elsa-studio

A modular, extensible dashboard application framework
MIT License
187 stars 90 forks source link

[BUG] UIHint = InputUIHints.VariablePicker not working in Studio #309

Closed Nekrosis1 closed 2 weeks ago

Nekrosis1 commented 1 month ago

When creating a custom activity with UIHint = InputUIHints.VariablePicker, although you get a dropdown to choose a variable, selecting a variable does nothing. Either there is a bug or the feature is not implemented yet. Built-in activities that use variables as in- or output use special implementation that cannot be used easily for custom activities.

jdevillard commented 3 weeks ago

Hello,

some element was added recently to add a dropdown and select Variable Input (instead of litteral or scripting). The allow you to not use a UIHint and should work for any properties of you activities.

Have you take a look at https://github.com/elsa-workflows/elsa-studio/pull/274 for ui side and https://github.com/elsa-workflows/elsa-core/pull/5918 for server side implementation

Would this fit you need ?

Nekrosis1 commented 2 weeks ago

Ah, so instead of using the UIHint VariablePicker on an Input, I can use the type Variable, similar to how it is used in the default activity SetVariable. Yes, this is what I was looking for. Thank you