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: ProcessDirectoryLocal.java,v 1.1 2007/05/03 21:58:24 mlipp Exp $
21: *
22: * $Log: ProcessDirectoryLocal.java,v $
23: * Revision 1.1 2007/05/03 21:58:24 mlipp
24: * Internal refactoring for making better use of local EJBs.
25: *
26: */
27: package de.danet.an.workflow.localapi;
28:
29: import java.util.Collection;
30:
31: import de.danet.an.workflow.api.ActivityUniqueKey;
32: import de.danet.an.workflow.api.CannotRemoveException;
33: import de.danet.an.workflow.api.InvalidKeyException;
34: import de.danet.an.workflow.api.Activity.Info;
35: import de.danet.an.workflow.localcoreapi.WfObjectLocal;
36: import de.danet.an.workflow.localcoreapi.WfProcessLocal;
37:
38: /**
39: * Client interface for the process directory.
40: */
41: public interface ProcessDirectoryLocal extends WfObjectLocal {
42:
43: /**
44: * This operation method returns a collection of the
45: * defined process types as Strings.
46: *
47: * @return collection of String
48: */
49: Collection processMgrNames();
50:
51: /**
52: * This method finds the process identified by the given
53: * type and key.
54: *
55: * @param processMgrName type of the given process.
56: * @param processKey key of the process.
57: * @return the process found.
58: * @throws InvalidKeyException if no such process can be
59: * found.
60: */
61: ProcessLocal lookupProcessLocal(String processMgrName,
62: String processKey) throws InvalidKeyException;
63:
64: /**
65: * This method finds the activity identified be the given unique
66: * key and returns all available information about it. This is a
67: * shortcut for first looking up the activity and then retrieving
68: * the "essential" information about it.
69: *
70: * @param key denotes the activity to be looked up.
71: * @return the corresponding <code>Activity.Info</code> value
72: * @exception InvalidKeyException if the activity specified by
73: * <code>key</code> cannot be found.
74: */
75: Info lookupActivityInfo(ActivityUniqueKey key)
76: throws InvalidKeyException;
77:
78: }
|