01: /*
02: * Copyright 2005-2006 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package edu.iu.uis.eden.postprocessor;
18:
19: /**
20: * Returned from a {@link PostProcessor} to indicate success of failure of
21: * a particular event. If success is false then this will typically trigger
22: * the document to go into exception routing.
23: *
24: * @see PostProcessor
25: *
26: * @author rkirkend
27: */
28: public class ProcessDocReport implements java.io.Serializable {
29:
30: static final long serialVersionUID = 376851530227478560L;
31:
32: private boolean success = false;
33: private String message;
34: private Exception processException = null;
35:
36: public ProcessDocReport(boolean success) {
37: this (success, "");
38: }
39:
40: public ProcessDocReport(boolean success, String message) {
41: this .success = success;
42: this .message = message;
43: }
44:
45: public ProcessDocReport(boolean success, String message, Exception e) {
46: this .success = success;
47: this .message = message;
48: this .processException = e;
49: }
50:
51: public String getMessage() {
52: return message;
53: }
54:
55: public Exception getProcessException() {
56: return processException;
57: }
58:
59: public boolean isSuccess() {
60: return success;
61: }
62: }
|