001/* 002 * Copyright 2007 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.ole.module.purap.document.service; 017 018 019import org.kuali.ole.module.purap.document.PurchasingAccountsPayableDocument; 020import org.kuali.rice.kim.api.identity.Person; 021import org.kuali.rice.krad.document.Document; 022 023public interface PurApWorkflowIntegrationService { 024 025 /** 026 * Take all actions on the given document based on the given criteria 027 * 028 * @param document 029 * @param potentialAnnotation 030 * @param nodeName 031 * @param user 032 * @param networkIdToImpersonate 033 * @return 034 */ 035 public boolean takeAllActionsForGivenCriteria(Document document, String potentialAnnotation, String nodeName, Person user, String superUserNetworkId); 036 037 /** 038 * Determine if the document will stop at the given node in the future routing process 039 * 040 * @param document 041 * @param givenNodeName 042 * @return boolean indicating if document is going to stop at the given node 043 */ 044 public boolean willDocumentStopAtGivenFutureRouteNode(PurchasingAccountsPayableDocument document, String givenNodeName); 045} 046