Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function executeRule(current, previous /*null when async*/) {
  2.    
  3.     var assignee = new SPOC_TicketUtils();
  4.    
  5.     if(!assignee.hasCapacity(current.assigned_to+'', current.u_capacity)){
  6.        
  7.         gs.addErrorMessage('Reaching maximum ticket capacity for the chosen assignee.');
  8.         current.setAbortAction(true);
  9.        
  10.     }
  11. })(current, previous);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement