|
Hi,
I'm currently developing some activities to implement some human workflows with microsoft workflow foundation but i've got two problems with the "Dependency Properties".
1 - the [DefaultValue(maValue)] works only if my property is a enum or a bool. If my property is a string or a int, the defaultvalue display is respectively set to "" or 0.
2 - If i try to use a custom activity A, which have a output propery, inside a more complex one B, i can't retrieve the output property of activity A to get to the activity B: the property A is always set to null value. This problem doesn't occur if i try to use my activity A directly in a SequentialWorkflow.
Thx in advance for your help.
Pat.
A sample of a Property
public static DependencyProperty TimeOutProperty = DependencyProperty.Register("TimeOut", typeof(int), typeof DynamicPlusWebServiceActivity));
[Description("Please specify Proxy Time Out expiration time for a synchronous web service request to complete (in milliseconds)")]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)]
[ValidationOptionAttribute(ValidationOption.Required)]
[BrowsableAttribute(true)]
[DefaultValue(300000)]
[Category("URL")]
public int TimeOut
{get{return ((int)(base.GetValue(DynamicPlusWebServiceActivity.TimeOutProperty)));}
set{base.SetValue(DynamicPlusWebServiceActivity.TimeOutProperty, value);}}
Patrick P. |