AnsweredAssumed Answered

Property Constraints Question

Question asked by stevegreenbaum on Nov 1, 2009
I have a property on a task screen whose validation needs to vary based on the transition selected by the user.  If the Approve transition is taken, the property must be greater than zero.  If the Reject transition is taken, the value must equal zero. 

How can this be implemented? 

I believe that a custom constraint won't work since the constraint code only receives the value of the property and nothing else. In this case, the transition which was selected would need to be an input to the constraint code.  I can't put the edit in the transition itself, since it would already be too late to then display an error message back to the user since the task has already ended.