private void LeaveCondition(object sender, ConditionalEventArgs e) {
System.Threading.Thread.Sleep(5000); // 模擬審批延遲
string result = Console.ReadLine(); // 讀取輸入 0/1
if (result == "0") e.Result = false; // 不批准
if (result == "1") e.Result = true; // 批准
}
對應左側 IfElseBranch 條件方法,輸入 1 走批准分支,0 走不批准分支。