01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18:
19: /* $Id: Transition.java 473861 2006-11-12 03:51:14Z gregor $ */
20:
21: package org.apache.lenya.workflow;
22:
23: /**
24: * <p>
25: * A transition describes the switching of a workflow instance
26: * from one state to another. A transition has
27: * </p>
28: *
29: * <ul>
30: * <li>a source state,</li>
31: * <li>a destination state,</li>
32: * <li>an event,</li>
33: * <li>a set of conditions,</li>
34: * <li>a set of assignments.</li>
35: * </ul>
36: *
37: * <p>
38: * Additionally, a transition can be marked as synchronized.
39: * </p>
40: */
41: public interface Transition {
42:
43: /**
44: * Returns the event of this transition.
45: * @return the event
46: */
47: String getEvent();
48:
49: /**
50: * @return The source state.
51: */
52: String getSource();
53:
54: /**
55: * @return The destination state.
56: */
57: String getDestination();
58:
59: /**
60: * Returns the actions of this transition.
61: * @return the actions
62: */
63: Action[] getActions();
64:
65: /**
66: * @return The conditions.
67: */
68: Condition[] getConditions();
69:
70: /**
71: * Returns if this transition is synchronized.
72: * @return A boolean value.
73: */
74: boolean isSynchronized();
75: }
|