001/**
002 * Copyright 2005-2017 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 */
016package org.kuali.rice.kew.framework.postprocessor;
017
018import org.kuali.rice.kew.framework.postprocessor.IDocumentEvent;
019
020/**
021 * Event sent to the postprocessor when the processor is started
022 * @author Kuali Rice Team (rice.collab@kuali.org)
023 */
024public class BeforeProcessEvent implements IDocumentEvent {
025
026        private static final long serialVersionUID = 2945081851810845704L;
027        private String documentId;
028        private String nodeInstanceId;
029        private String appDocId;
030
031        public BeforeProcessEvent(String documentId, String appDocId, String nodeInstanceId) {
032                this.documentId = documentId;
033                this.appDocId = appDocId;
034                this.nodeInstanceId = nodeInstanceId;
035        }
036        
037        public String getNodeInstanceId() {
038            return nodeInstanceId;
039        }
040
041        public String getDocumentId() {
042                return documentId;
043        }
044
045        public String getAppDocId() {
046                return appDocId;
047        }
048
049    public String getDocumentEventCode() {
050        return IDocumentEvent.BEFORE_PROCESS;
051    }
052
053}