Is it possibly to access the default value of a dynamic activity's argument through the API? I would like to do this outside of the scope of execution.
So far I've attempted to load the XAML as a DynamicActivity and access the individual DynamicActivityProperty types. In a DynamicActivityProperty, there is a Value property, but it returns a type of InArgument with actual type of the argument
set as a generic. I would like to get the actual value of the InArgument, rather than InArgument<T>. I would assume this would be the actual default value of my argument.
The code I have so far looks something like this:
System.Activities.Activity activity = null;
DynamicActivity dynActivity = null;
// Get bytes from string .xaml
using (Stream stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(xamlString)))
activity = ActivityXamlServices.Load(stream);
dynActivity = activity as DynamicActivity;
// Iterate through workflow arguments
View Complete Post