Пример #1
0
 public void cancelWorkflowForDcCoop(AdDcCoopBean dcCoop) throws ApplicationException {
   if (dcCoop != null && dcCoop.getWorkFlowPhaseId() > 0) {
     int tranId =
         ContractsUtils.getTransactionPhaseCommand()
             .getTransactionPhaseById(dcCoop.getWorkFlowPhaseId())
             .getTransactionId();
     if (LOG.isLoggable(Level.FINER))
       LOG.log(
           Level.FINER,
           "Cancelling transaction [" + tranId + "] for Ad Coop [" + dcCoop.getCoopId() + "].");
     ContractsUtils.getTransactionCommand().cancelTransaction(tranId);
   }
 }