01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2006 Danet GmbH (www.danet.de), BU BTS.
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: ExecutionObjectLocal.java,v 1.1 2007/05/03 21:58:24 mlipp Exp $
21: *
22: * $Log: ExecutionObjectLocal.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 de.danet.an.workflow.localcoreapi.WfExecutionObjectLocal;
30: import de.danet.an.workflow.omgcore.InvalidStateException;
31: import de.danet.an.workflow.omgcore.TransitionNotAllowedException;
32: import de.danet.an.workflow.omgcore.WfExecutionObject.State;
33:
34: /**
35: * @see de.danet.an.workflow.api.ExecutionObject
36: *
37: * @author mnl
38: */
39: public interface ExecutionObjectLocal extends WfExecutionObjectLocal {
40:
41: /**
42: * Type-safe equivalent to {@link
43: * de.danet.an.workflow.omgcore.WfExecutionObject#state
44: * <code>WfExecutionObject.state()</code>}.
45: *
46: * @return the state.
47: */
48: State typedState();
49:
50: /**
51: * Type-safe equivalent to {@link
52: * de.danet.an.workflow.omgcore.WfExecutionObject#changeState
53: * <code>WfExecutionObject.changeState()</code>}.
54: *
55: * @param newState state to change to.
56: * @throws InvalidStateException if <code>newState</code> is an invalid
57: * state for the execution object.
58: * @throws TransitionNotAllowedException if the transition from the current
59: * state to <code>newState</code> is not allowed.
60: */
61: void changeState(State newState) throws InvalidStateException,
62: TransitionNotAllowedException;
63:
64: /**
65: * Checks if the execution object is in debugging mode.
66: *
67: * @return <code>true</code> if the execution object is in
68: * debugging mode
69: */
70: boolean debugEnabled();
71:
72: }
|