预定流程退货

扫码查看
本文介绍了预定流程退货的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安排了ProcessAll操作。我有一个

 抛出新的PXOperationCompletedException(statusText);如果例程中没有错误,请在例程结尾处添加

。但是,这会使时间表在自动化时间表屏幕上显示为带有红色X图标的时间表。对异常进行注释可以使计划显示绿色的复选标记,但是当悬停在屏幕顶部的复选标记上时,状态文本不会返回,也不会显示在常规过程页面上。

解决方案

这似乎是Acumatica方面的潜在问题。抛出 PXOperationCompletedException 不会导致在自动化时间表屏幕上显示错误状态。



要回答您的问题,抛出 PXOperationCompletedException ,以显示成功完成的过程的自定义消息。




I have scheduled a ProcessAll action. I have a

throw new PXOperationCompletedException(statusText);

at the end of the routine if there are no errors during the process. However, this causes the schedule to show with a red X icon on the Automation Schedules screen. Commenting out the exception allows the schedule to show a green check mark, but then the status text is not returned nor does it show on the regular process page when hovering over the check mark at the top of the screen. Is there another PXOperationCompleted variation to handle this?

解决方案

This seems to be a potential issue on the Acumatica side. Throwing PXOperationCompletedException should not result in error status shown on the Automation Schedules screen.

To answer your question, throwing PXOperationCompletedException at the end of a background operation is currently the only supported option to show a custom message for a successfully completed process.

I have sent all details to Acumatica engineering Team for review. Hopefully, the fix will be released soon in one of the upcoming updates.

这篇关于预定流程退货的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-03 10:22
查看更多