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: TransitionLocal.java,v 1.1 2007/05/03 21:58:23 mlipp Exp $
21: *
22: * $Log: TransitionLocal.java,v $
23: * Revision 1.1 2007/05/03 21:58:23 mlipp
24: * Internal refactoring for making better use of local EJBs.
25: *
26: */
27:
28: package de.danet.an.workflow.localapi;
29:
30: /**
31: * Represents a transition between two activities.<P>
32: *
33: * Methods of this interface do not throw
34: * <code>RemoteException</code>s as they are read-only and the data is
35: * immutable and simple.
36: */
37: public interface TransitionLocal {
38:
39: /**
40: * Returns the "From" activity of this transition.
41: *
42: * @return the source activity
43: */
44: ActivityLocal from();
45:
46: /**
47: * Returns the "To" activity of this transition.
48: *
49: * @return the destination activity
50: */
51: ActivityLocal to();
52:
53: /**
54: * Returns the id of this transition.
55: *
56: * @return the id
57: */
58: String id();
59:
60: /**
61: * Return the priority of this transition. The priority determines
62: * the sequence in which transitions from activties with XOR split
63: * are evaluated.
64: * @return the priority
65: */
66: int order();
67:
68: /**
69: * Return the identifier of the transition group this transition
70: * belongs to.
71: * @return the transition group
72: */
73: String group();
74:
75: /**
76: * Returns the type of the condition associated with this
77: * transition.
78: * @return type of the condition of this transition
79: */
80: int conditionType();
81:
82: /**
83: * Returns the condition associated with this transition.
84: * @return the condition of this transition
85: */
86: String condition();
87:
88: }
|