1 /****************************************************************************** 2 * The contents of this file are subject to the Compiere License Version 1.1 3 * ("License"); You may not use this file except in compliance with the License 4 * You may obtain a copy of the License at http://www.compiere.org/license.html 5 * Software distributed under the License is distributed on an "AS IS" basis, 6 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 7 * the specific language governing rights and limitations under the License. 8 * The Original Code is Compiere ERP & CRM Business Solution 9 * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc. 10 * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts 11 * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved. 12 * Contributor(s): ______________________________________. 13 *****************************************************************************/ 14 package org.compiere.process; 15 16 import java.util.*; 17 18 /** 19 * Interface for user started processes. 20 * 21 * ProcessCtrl.startClass creates the Object and calls startProcess 22 * before executing the optional SQL procedure and Report. 23 * 24 * @see ProcessCtl#startClass 25 * @author Jorg Janke 26 * @version $Id: ProcessCall.java,v 1.2 2003/02/15 06:32:50 jjanke Exp $ 27 */ 28 public interface ProcessCall 29 { 30 /** 31 * Start the process. 32 * Called when pressing the ... button in ... 33 * It should only return false, if the function could not be performed 34 * as this causes the process to abort. 35 * 36 * @param ctx Context 37 * @param pi Process Info 38 * @return true if the next process should be performed 39 */ 40 public boolean startProcess (Properties ctx, ProcessInfo pi); 41 42 } // ProcessCall 43