daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Nov 16th, 2018 84 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1.     private boolean isItemProcessing = false;
  2.     public void scanConsolidationShelf(String shelfLabel, boolean isStrictAdvisingMode) {
  3.         if (isItemProcessing) {
  4.             return;
  5.         }
  6.         try {
  7.             if (consolidationShelfName.isPresent() && !consolidationShelfName.equals(fromNullable(shelfLabel))) {
  8.                 if (isStrictAdvisingMode) {
  9.                     throw new LMException(CONSOLIDATION_WRONG_SHELF, shelfLabel, consolidationShelfName.get());
  10.                 }
  11.             }
  12.             this.consolidationShelfName = fromNullable(shelfLabel);
  13.             isItemProcessing = true;
  14.             consolidationFacade.putItemInConsolidationShelf(shelfLabel, itemLabel.get());
  15.         } catch (EJBTransactionRolledbackException e) {
  16.             throw new LMException(e, CONSOLIDATION_WRONG_SHELF, shelfLabel, getAssignedConsolidationShelf());
  17.         } finally {
  18.             isItemProcessing = false;
  19.         }
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top