You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2003/06/02 19:32:47 UTC

cvs commit: cocoon-lenya/src/java/org/apache/lenya/workflow Transition.java

andreas     2003/06/02 10:32:47

  Modified:    src/java/org/apache/lenya/workflow/impl TransitionImpl.java
               src/java/org/apache/lenya/workflow Transition.java
  Log:
  using StateImpl instead of State
  
  Revision  Changes    Path
  1.3       +6 -7      cocoon-lenya/src/java/org/apache/lenya/workflow/impl/TransitionImpl.java
  
  Index: TransitionImpl.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/workflow/impl/TransitionImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TransitionImpl.java	30 May 2003 19:59:15 -0000	1.2
  +++ TransitionImpl.java	2 Jun 2003 17:32:47 -0000	1.3
  @@ -12,7 +12,6 @@
   import org.apache.lenya.workflow.Condition;
   import org.apache.lenya.workflow.Event;
   import org.apache.lenya.workflow.Situation;
  -import org.apache.lenya.workflow.State;
   import org.apache.lenya.workflow.Transition;
   
   /**
  @@ -22,7 +21,7 @@
   public class TransitionImpl implements Transition {
   
       /** Creates a new instance of TransitionImpl */
  -    protected TransitionImpl(State sourceState, State destinationState) {
  +    protected TransitionImpl(StateImpl sourceState, StateImpl destinationState) {
   
           assert sourceState != null;
           assert destinationState != null;
  @@ -65,15 +64,15 @@
           event = anEvent;
       }
   
  -    private State source;
  +    private StateImpl source;
   
  -    public State getSource() {
  +    public StateImpl getSource() {
           return source;
       }
   
  -    private State destination;
  +    private StateImpl destination;
   
  -    public State getDestination() {
  +    public StateImpl getDestination() {
           return destination;
       }
   
  @@ -96,7 +95,7 @@
        */
       public String toString() {
           
  -        String string = getEvent().getCommand() + " [";
  +        String string = getEvent().getName() + " [";
           Condition conditions[] = getConditions();
           for (int i = 0; i < conditions.length; i++) {
               if (i > 0) string += ", ";
  
  
  
  1.2       +1 -1      cocoon-lenya/src/java/org/apache/lenya/workflow/Transition.java
  
  Index: Transition.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/workflow/Transition.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Transition.java	30 May 2003 19:32:43 -0000	1.1
  +++ Transition.java	2 Jun 2003 17:32:47 -0000	1.2
  @@ -21,7 +21,7 @@
        * Returns the actions of this transition.
        */
       Action[] getActions();
  -
  +    
       /**
        * Returns if the transition can fire in a certain situation.
        */
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org