determineBranch
protected String determineBranch(AttributedDocumentEvent event)
Overrides the method in PurchasingProcessAccountValidation to provide additional
validation condition. If the accounts on the item are editable in the amendment document then
we should continue doing the processAccountValidation in the superclass, otherwise
we should just return true so that the account won't be validated, because if
the items contain accounts that aren't editable, it doesn't make sense to give
the user account validation errors.
- Specified by:
determineBranch
in class BranchingValidation
- Parameters:
event
- the event which triggered this validation
- Returns:
- the name of the branch to take, or a null or empty string to not take any branch and simply pass validation as true