I have two custom NativeActivity (Root and Final) with respective ActivityDesigner:
In the Root NativeActivity I have:
[ContentProperty("Body")]
[Designer(typeof(RootActivityDesigner))]
public class RootActivity : NativeActivity
{
public Activity Body { get; set; }
protected override void Execute(NativeActivityContext context)
{
if (this.Body != null)
{
context.ScheduleActivity(this.Body);
}
}
}
and the Final NativeActivity I have:
[Designer(typeof(FinalActivityDesigner))]
public class FinalActivity : NativeActivity
{
protected override void Execute(NativeActivityContext context)
{
//Do Stuff
}
}
So when I create a new workflow I drag first RootActivity and than drag other activities inside Root Body and all works fine except FinalActivity that doesn't being execute, so "do stuff" doens't hit.
What is wrong?
I have to call context.ScheduleActivity(this.Body); for FinalActivity too?
Thanks a lot!