Skip to main content
16-Pearl
February 17, 2025
Solved

Is it Possible to customize the Revise action ok button to generate Custom Conflict Event?

  • February 17, 2025
  • 1 reply
  • 605 views

Hi,

I have few checks need to be done when user revises the object.

But the checks are just to inform the user, it can be ignored.

I wanted to generate custom conflict event when user clicks on revise, if the checks are failed, I need to show the check failed on event management window where user can ignore the warning and proceed.

Is it possible to achieve?

Best answer by d_graham

@TDT 

You are correct.  If the listener throws an exception the action does not get persisted.

 

What you need is a "FeedbackMessage" that can be generated using the Data Utility that is run OOTB during the action in question, in the case Revise.

1 reply

avillanueva
23-Emerald I
23-Emerald I
February 17, 2025

Yes, very easily and I just did one. You want to create a Listener service on the Revise action. Here is where you can insert your custom logic, what objects to filter on and your rules. If those rules are violated, you simply throw a WTException message that will send a note back to user as to what was wrong. 

TDT16-PearlAuthor
16-Pearl
February 18, 2025

HI @avillanueva,

 

Thanks for the Solution.

Throwing WTException message will not allow the user to revise right?

The Idea is to show the errors on UI to the user, the user should be able to revise without fixing the error.

Its optional to fix the errors.

d_graham18-OpalAnswer
18-Opal
February 18, 2025

@TDT 

You are correct.  If the listener throws an exception the action does not get persisted.

 

What you need is a "FeedbackMessage" that can be generated using the Data Utility that is run OOTB during the action in question, in the case Revise.