//...
public static DependencyProperty __ContextProperty =
DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(EmailActivity));
//...
[ValidationOption(ValidationOption.Optional)]public WorkflowContext __Context
{
get { return (WorkflowContext) base.GetValue(__ContextProperty); }
set { base.SetValue(__ContextProperty, value); }
}
//...
protected override ActivityExecutionStatus Execute(ActivityExecutionContext provider)
{
Activity parent = provider.Activity;
while (parent.Parent != null)
{
parent = parent.Parent;
}
string returnValue = Helper.ProcessStringField(stringToProcess, parent, this.__Context));
}
It seems that if you don't have WorkflowContext you can pass null
string returnValue = Helper.ProcessStringField(stringToProcess, parent, this.__Context));
1 comment:
Thanks Sebastian.
This helped me a lot.
Regards,
Indrajeet.
blogindrajeet.blogspot.com
Post a Comment