我创建了一个工作流活动,我希望在我的sequenceworkflow中重用它作为可重用的块。
我遇到的问题是,我不能在我的街区开展儿童活动。我正在锁定自定义活动。
这应该是可能的,对吧?
[Designer(typeof(SequentialActivityDesigner), typeof(IDesigner))]
public partial class CheckTypeProcesActivity : SequenceActivity
{
public static DependencyProperty ProcesTypeProperty =
DependencyProperty.Register("ProcesType", typeof(Enums.ProcesType), typeof(CheckTypeProcesActivity));
public CheckTypeProcesActivity()
{
InitializeComponent();
this.CanModifyActivities = true;
}
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[Browsable(true)]
[Category("Parameters")]
public Enums.ProcesType ProcesType
{
get { return (Enums.ProcesType)GetValue(ProcesTypeProperty); }
set { SetValue(ProcesTypeProperty, value); }
}
}