Coverage Report - org.kuali.rice.kew.framework.postprocessor.ProcessDocReport
 
Classes in this File Line Coverage Branch Coverage Complexity
ProcessDocReport
0%
0/16
N/A
1
 
 1  
 /**
 2  
  * Copyright 2005-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.opensource.org/licenses/ecl2.php
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.kuali.rice.kew.framework.postprocessor;
 17  
 
 18  
 /**
 19  
  * Returned from a {@link org.kuali.rice.kew.framework.postprocessor.PostProcessor} to indicate success of failure of
 20  
  * a particular event.  If success is false then this will typically trigger
 21  
  * the document to go into exception routing.
 22  
  * 
 23  
  * @see org.kuali.rice.kew.framework.postprocessor.PostProcessor
 24  
  *
 25  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 26  
  */
 27  
 public class ProcessDocReport implements java.io.Serializable {
 28  
 
 29  
         static final long serialVersionUID = 376851530227478560L;
 30  
 
 31  0
         private boolean success = false;
 32  
         private String message;
 33  0
         private Exception processException = null;
 34  
 
 35  
         public ProcessDocReport(boolean success) {
 36  0
                 this(success, "");
 37  0
         }
 38  
 
 39  0
         public ProcessDocReport(boolean success, String message) {
 40  0
                 this.success = success;
 41  0
                 this.message = message;
 42  0
         }
 43  
 
 44  0
         public ProcessDocReport(boolean success, String message, Exception e) {
 45  0
                 this.success = success;
 46  0
                 this.message = message;
 47  0
                 this.processException = e;
 48  0
         }
 49  
 
 50  
         public String getMessage() {
 51  0
                 return message;
 52  
         }
 53  
 
 54  
         public Exception getProcessException() {
 55  0
                 return processException;
 56  
         }
 57  
 
 58  
         public boolean isSuccess() {
 59  0
                 return success;
 60  
         }
 61  
 }