我创建了一个工作流活动,我想在我的序列工作流中重用它作为可重用块。
我遇到的问题是,我不能参加我所在街区的儿童活动。我正在锁定自定义活动。
这应该是可能的,对吧?
[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); }
}
}