0
我有一個自定義構建活動,但未執行。我把它放在try-catch塊中,它在我的構建模板中捕獲Sysytem.Exception,並且第一行overriden執行方法正在拋出Sysytem.Exception。在日誌上我只看到我的自定義活動的名字!任何猜測?自定義構建活動未運行
protected override void Execute(CodeActivityContext context)
{
throw new System.Exception("This is hello messasge");
...
}
我不明白,您的自定義代碼會引發異常,並且工作流會看到該異常。你期望它做什麼不同? –
工作流沒有看到異常。 – user1016945