What I am looking for is dynamic output properties.
I am trying to create a custom activity for pulling values out of XML. A UI type editor dialog lets the user specify a number of xpaths each with a property name and datatype. After the xpaths are defined, a dynamic property is created in the property grid using PreFilterProperties for each xpath with the datatype specified in the dialog. When the activity is executed each property is set to the value obtained from running the associated xpath. What I would like is for other activities to be able to bind to the dynamic properties to pull the value.
The dynamic property examples create properties (usually reflected method parameters) on the fly in the designer which can bind to other activites. I would like to create ones which can be bound to.
I am using XAML only workflows and so cannot use code-behind and would like to avoid having to place 30 individual xpath activites to bind to 30 values pulled from XML. If I output the values to a string array then I will need 30 conversion activites instead which I also would like to avoid.
Any suggestions?
Thanks |