001    /**
002     * Copyright 2005-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.rice.kew.framework.postprocessor;
017    
018    import org.kuali.rice.kew.api.action.ActionTaken;
019    
020    /**
021     * Event sent to the postprocessor when an action has been taken
022     * @author Kuali Rice Team (rice.collab@kuali.org)
023     */
024    public class ActionTakenEvent implements IDocumentEvent {
025    
026            private static final long serialVersionUID = 2945081851810845704L;
027            private String documentId;
028            private String appDocId;
029            private ActionTaken actionTaken;
030    
031            public ActionTakenEvent(String documentId, String appDocId, ActionTaken actionTaken) {
032                    this.documentId = documentId;
033                    this.appDocId = appDocId;
034                    this.actionTaken = actionTaken;
035            }
036    
037            public String getDocumentEventCode() {
038                    return ACTION_TAKEN;
039            }
040    
041            public String getDocumentId() {
042                    return documentId;
043            }
044    
045            public ActionTaken getActionTaken() {
046                    return actionTaken;
047            }
048    
049            public String getAppDocId() {
050                    return appDocId;
051            }
052    
053    }