开发者

Add InArgument of Activity to Root Activity

I have workflow designer which I use for authoring workflow; now when I drop any activity to Designer I catch that in ModelChanged event and can get the all the InArguemnt of that type now I want to add those Argument to the WorkFlow as well; it is like in 开发者_如何学编程Visual Studio I can define Arguments through I want to add that automatically while authoring work flow.

How can I do this ?

Thanks Ocean


Walk up the model tree (ModelItem.Parent.Parent.Parent...., add the new arguments:

activityBuilderModelItem.Properties["Properties"].Collection.Add(new DynamicActivityProperty { Name = "argumentName", Type = typeof(InArgument) });

etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜