Stopping multiple pre-conditions in server-side plugin
Sola Otudeko (45●1●15●16)
| asked Nov 14 '12, 2:21 p.m.
edited Nov 14 '12, 5:44 p.m. by David Olsen (523●7)
Hi, I am implementing some checks on work item save with 2 pre-conditions (it's more convenient to have two). If the first one fails, I am finding the second still runs. Anyone know if possible to abort completely and stop subsequent preconditions from firing.
I stop the pre-condition with
IAdvisorInfo problem = collector.createProblemInfo(.....)
collector.addInfo(problem)
btw...I assume preconditions run in the order they are listed in the UI. Is that correct/guaranteed?
Thanks
Sola
|
One answer
I don't think we can abandon the subsequent preconditions check here.
The design here is checking all the preconditions and let people know all he preconditions that fail at once. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.