1 /**
2 * Copyright 2005-2015 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 private boolean success = false;
32 private String message;
33 private Exception processException = null;
34
35 public ProcessDocReport(boolean success) {
36 this(success, "");
37 }
38
39 public ProcessDocReport(boolean success, String message) {
40 this.success = success;
41 this.message = message;
42 }
43
44 public ProcessDocReport(boolean success, String message, Exception e) {
45 this.success = success;
46 this.message = message;
47 this.processException = e;
48 }
49
50 public String getMessage() {
51 return message;
52 }
53
54 public Exception getProcessException() {
55 return processException;
56 }
57
58 public boolean isSuccess() {
59 return success;
60 }
61 }