It's all about the answers!

Ask a question

Stopping multiple pre-conditions in server-side plugin


Sola Otudeko (4511516) | asked Nov 14 '12, 2:21 p.m.
edited Nov 14 '12, 5:44 p.m. by David Olsen (5237)
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



permanent link
Thomas Yu (45183) | answered Dec 03 '12, 9:25 p.m.
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


Register or to post 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.