01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2003 Danet GmbH (www.danet.de), GS-AN.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: ExecutionModeProvider.java,v 1.2 2006/09/29 12:32:10 drmlipp Exp $
21: *
22: * $Log: ExecutionModeProvider.java,v $
23: * Revision 1.2 2006/09/29 12:32:10 drmlipp
24: * Consistently using WfMOpen as projct name now.
25: *
26: * Revision 1.1.1.2 2004/08/18 15:17:38 drmlipp
27: * Update to 1.2
28: *
29: * Revision 1.2 2004/04/12 19:33:52 lipp
30: * Clarified application invocation interface.
31: *
32: * Revision 1.1 2003/10/05 15:34:56 lipp
33: * Added tool provided execution mode.
34: *
35: */
36: package de.danet.an.workflow.spis.aii;
37:
38: /**
39: * This interface can be implemented by {@link ToolAgent
40: * <code>ToolAgent</code>s} that provide information about their
41: * preferred execution mode.<P>
42: *
43: * Note that if a tool agent implements this interface, the mode
44: * returned by <code>executionMode</code> overrides any
45: * settings in XPDL.
46: *
47: * @author <a href="mailto:lipp@danet.de">Michael Lipp</a>
48: * @version $Revision: 1.2 $
49: * @deprecated As of version 1.2, there are no different execution
50: * modes any more.
51: */
52: public interface ExecutionModeProvider {
53:
54: /** Indicates that the tool is to be executed asynchronously with
55: * respect to state evaluation (see user manual for details). **/
56: public static final int ASYNCHR = 1;
57:
58: /** Indicates that the tool is to be executed synchronously with
59: * respect to state evaluation (see user manual for details). **/
60: public static final int SYNCHR = 2;
61:
62: /**
63: * Returns the preferred execution mode of the tools.
64: * @return one of <code>ASYNCHR</code> or <code>SYNCHR</code>
65: */
66: int executionMode();
67: }
|