We are re-hosting the WF-4 designer in our own app. We have something called a Filter. Now we want an activity that lets you run this filter and work with the results in a ForEach. Simple enough. But these Filters have a list of parameters (for running the filter) that need to be filled in the workflow host. The list of filter parameters can be anything from 0 to N.
After the user sets FilterId, is there a way we can create an instance of that Filter, examine its list of parameters and add those parameters to the Activity? The parameters are basically just Name, Type and needs its Value filled out by the user.
Another thing, we do not want to create an instance of the Filter at run-time, that would be too expensive. At run-time, we just need the filter id and the list of parameter Values.
I'd be happy with having a static property for parameters, if there is a way to update it when FilterId changes and validate that all parameters in this list have values.