elsa-workflows / elsa-workflows/elsa-core
Custom Acitivity - Pickers
- Dominant language
- C#
- Stars
- 7.9k
- Forks
- 1.5k
- Avg merge
- 15h 22m
- Merged PRs (30d)
- 114
Description
Hi - as discussed on Discord: - i would like to have the ability to have for example an picker - where we can have an Display Value - and an actual Member Value - currently we only have an SelectListItem with string/string. Examples are - pick an Type from some list - or for example let the user select an Report Definition - i would display the Report Name - but store the selected Report ID (Guid) in the activity,
Discord:
2. I think it's possible, although I don't have any examples unfortunately. Regarding the Type type, there is an issue on GitHub that describes implementing a Type picker that we need (for example when specifying the workflow context type or target type to deserialize the response of an HTTP request into). Right now, users need to enter the assembly-qualified type name, which will then be converted to an actual Type instance using a custom converter.
But this is not the same of course as allowing a user to select items from a list where each item uses the object ID as the value and some display text, and then somehow storing the actual object in an activity property. I don't know if we have an extensibility hook into the serialization process to pull this of, but I do think this is a useful scenario that we should support.
If you want to create an issue about this then I'd be happy to roadmap it.
Contributor guide
Assessment
This issue has not been assessed yet.