自定义长时间操作成功消息

Custom Long Operation Success message

我正在尝试显示自定义成功消息,而不是基本的 'The operation has completed.' 有人知道如何为某些特定的长时间操作实现它吗? (例如仅用于作废对账声明)

基本上,可以从长操作内部抛出 PXOperationCompletedException 以使用自定义消息完成它。 这是一个例子

PXLongOperation.StartOperation(this, () =>
        {
            throw new PXOperationCompletedException("test");
        });