Hello Community,
I want to program a custom activity with a scope. Therefore I use the following code:
//-Begin----------------------------------------------------------------
using System.Activities;
using System.Activities.Statements;
using System.ComponentModel;
namespace UITest {
//-Scope--------------------------------------------------------------
public class Scope : NativeActivity {
[Browsable(false)]
public ActivityAction Body { get; set; }
public Scope() {
Body = new ActivityAction {
Handler = new Sequence { DisplayName = "Do" }
};
}
protected override void Execute(NativeActivityContext context) {
}
}
}
//-End------------------------------------------------------------------
After the compilation, the building of the NuGet package and the importing in the UiPath Studio all works well and as expected. But if I use the scope inside a workflow, it contains an unwanted text “Delegate: Body”.
What is my failure? How is it possible to create a scope activity without this text?
Thanks for tips and hints.
Best regards
Stefan