lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/workflow WorkflowInstance.java
Date Wed, 28 May 2003 15:01:09 GMT
andreas     2003/05/28 08:01:09

  Modified:    src/java/org/apache/lenya/cms/workflow WorkflowInstance.java
  Log:
  decoupled workflow from publication
  
  Revision  Changes    Path
  1.4       +10 -12    cocoon-lenya/src/java/org/apache/lenya/cms/workflow/WorkflowInstance.java
  
  Index: WorkflowInstance.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/workflow/WorkflowInstance.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WorkflowInstance.java	27 May 2003 15:26:30 -0000	1.3
  +++ WorkflowInstance.java	28 May 2003 15:01:09 -0000	1.4
  @@ -6,35 +6,33 @@
   
   package org.apache.lenya.cms.workflow;
   
  -import org.apache.lenya.cms.ac.User;
  -import org.apache.lenya.cms.publication.Document;
  -
   /**
    *
    * @author  andreas
    */
   public interface WorkflowInstance {
  -    
  +
       /**
  -     * Returns the document of this WorkflowInstance.
  +     * Returns the workflow this instance belongs to. 
  +     * @return A Workflow object.
        */
  -    Document getDocument();
  -    
  +    Workflow getWorkflow();
  +
       /**
        * Returns the current state of this WorkflowInstance.
        */
       State getCurrentState();
  -    
  +
       /**
        * Returns the transitions that can fire for this user.
        */
  -    Transition[] getExecutableTransitions(User user);
  -    
  +    Transition[] getExecutableTransitions(Situation situation);
  +
       /**
        * Indicates that the user invoked an event.
        * @param user The user who invoked the event.
        * @param event The event that was invoked.
        */
  -    void invoke(User user, Event event);
  -    
  +    void invoke(Situation situation, Event event);
  +
   }
  
  
  

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


Mime
View raw message