我有一个应用程序,其中有长时间运行的进程,以处理我使用Windows Workflow4
流程取决于用户数量 如果用户数量较少,即30-100,那么它工作正常,如果大于500则存在问题
即使工作流程完成,我的问题仍然是查看正在显示处理但在后端已完成
工作流程代码
WorkflowApplication application;
application = new WorkflowApplication(new Payroll_Workflow.PayrollProcess(), inputparam);
application.SynchronizationContext = new SynchronousSynchronizationContext();
//we assign a delegate for the Completed event of the application
application.Completed = delegate(WorkflowApplicationCompletedEventArgs completedEvent)
{
if (completedEvent.TerminationException != null)
{
communicationMessage.message = completedEvent.TerminationException.Message.Replace("_", " ");
//ErrorMessages error = (ErrorMessages)Enum.Parse(typeof(ErrorMessages), completedEvent.TerminationException.Message.Replace(" ", "_"));
}
else
{
communicationMessage.message = "Process Completed";
}
};
//we start the application
application.Run();
答案 0 :(得分:0)
您的工作流程是否全部达到“communicationMessage.message =”流程已完成“;” ?
如果他们或许这个沟通过程可能不堪重负?