Is it Possible to customize the Revise action ok button to generate Custom Conflict Event?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Is it Possible to customize the Revise action ok button to generate Custom Conflict Event?
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?
Solved! Go to Solution.
- Labels:
-
Windchill Visualization
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Ahh, yes, missed that part of your question. What's your use case? What kind of issue would be a warning not a hard error on revise?
