krysalis-sandbox/workflow/src/java/org/krysalis/workflow DefaultWorkFlowState.java,1.1,1.2 WorkFlow.java,1.2,1.3 WorkFlowAction.java,1.2,1.3 WorkFlowCondition.java,1.2,1.3 WorkFlowEvent.java,1.1,1.2 WorkFlowManager.java,1.4,1.5 WorkFlowMapper.java,1.1,1.2 WorkFlowState.java,1.1,1.2 WorkFlowStore.java,1.2,1.3

[email protected]
Newsgroups gmane.comp.krysalis.sandbox
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow
In directory sc8-pr-cvs1:/tmp/cvs-serv11380/src/java/org/krysalis/workflow

Modified Files:
	DefaultWorkFlowState.java WorkFlow.java WorkFlowAction.java 
	WorkFlowCondition.java WorkFlowEvent.java WorkFlowManager.java 
	WorkFlowMapper.java WorkFlowState.java WorkFlowStore.java 
Log Message:
Managed the first running test case.
Add all avalon libs, which will be needed(incredible many!).


Index: DefaultWorkFlowState.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/DefaultWorkFlowState.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DefaultWorkFlowState.java	14 Mar 2003 09:17:26 -0000	1.1
--- DefaultWorkFlowState.java	14 Mar 2003 15:06:00 -0000	1.2
***************
*** 17,67 ****
   * @author <a href="mailto:[email protected]">Stephan Michels</a>
   */
! public class DefaultWorkFlowState implements WorkFlowState {
! 
!     private String resource;
!     private String state;
!     private HashMap attributes;
  
!     public DefaultWorkFlowState(String resource)
!     {
!       this.resource = resource;
!     }
  
!     public DefaultWorkFlowState(String resource, String state)
!     {
!       this.resource = resource;
!       this.state = state;
!     }
  
!     public String getResource()
!     {
!       return resource;
!     }
  
  
!     public void setState(String state)
!     {
!       this.state = state;
!     }
  
!     public String getState()
!     {
!       return state;
!     }
  
!     public void setAttribute(String name, Object value)
!     {
!       attributes.put(name, value);
!     }
  
!     public Object getAttribute(String name)
!     {
!       return attributes.get(name);
!     }
  
!     public Map getAttributes()
!     {
!       return attributes;
!     }
  }
  
--- 17,111 ----
   * @author <a href="mailto:[email protected]">Stephan Michels</a>
   */
! public class DefaultWorkFlowState implements WorkFlowState
! {
  
!   private String resource;
!   private String state;
!   private HashMap attributes;
  
!   /**
!    *
!    *
!    * @param resource   
!    */
!   public DefaultWorkFlowState(String resource)
!   {
!     this.resource = resource;
!   }
  
!   /**
!    *
!    *
!    * @param resource   
!    * @param state      
!    */
!   public DefaultWorkFlowState(String resource, String state)
!   {
!     this.resource = resource;
!     this.state = state;
!   }
  
+   /**
+    *
+    *
+    * @return
+    */
+   public String getResource()
+   {
+     return resource;
+   }
  
!   /**
!    *
!    *
!    * @param state      
!    */
!   public void setState(String state)
!   {
!     this.state = state;
!   }
  
!   /**
!    *
!    *
!    * @return
!    */
!   public String getState()
!   {
!     return state;
!   }
  
!   /**
!    *
!    *
!    * @param name       
!    * @param value      
!    */
!   public void setAttribute(String name, Object value)
!   {
!     attributes.put(name, value);
!   }
  
!   /**
!    *
!    *
!    * @param name       
!    *
!    * @return
!    */
!   public Object getAttribute(String name)
!   {
!     return attributes.get(name);
!   }
  
!   /**
!    *
!    *
!    * @return
!    */
!   public Map getAttributes()
!   {
!     return attributes;
!   }
  }
  
***************
*** 70,74 ****
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and 
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
--- 114,118 ----
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
***************
*** 88,92 ****
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project 
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
--- 132,136 ----
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
***************
*** 97,106 ****
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
!    
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many 
     individuals, who decided to donate the code to this project in
     respect of this licence.
--- 141,150 ----
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
! 
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many
     individuals, who decided to donate the code to this project in
     respect of this licence.

Index: WorkFlow.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlow.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WorkFlow.java	14 Mar 2003 09:17:27 -0000	1.2
--- WorkFlow.java	14 Mar 2003 15:06:02 -0000	1.3
***************
*** 6,10 ****
   * at the bottom of this file.                                               *
   *****************************************************************************/
!  
  package org.krysalis.workflow;
  
--- 6,10 ----
   * at the bottom of this file.                                               *
   *****************************************************************************/
! 
  package org.krysalis.workflow;
  
***************
*** 13,27 ****
  
  /**
!  * 
!  * 
   *
   * @author <a href="mailto:[email protected]">Stephan Michels</a>
   * @version CVS $Id$
   */
! public interface WorkFlow extends Component, ThreadSafe {
  
!     public final static String ROLE = WorkFlow.class.getName();
  
!     WorkFlowState process(WorkFlowState state, WorkFlowEvent event);
  }
  
--- 13,35 ----
  
  /**
!  *
!  *
   *
   * @author <a href="mailto:[email protected]">Stephan Michels</a>
   * @version CVS $Id$
   */
! public interface WorkFlow extends Component, ThreadSafe
! {
  
!   /**  */
!   public final static String ROLE = WorkFlow.class.getName();
  
!   /**
!    *
!    *
!    * @param state      
!    * @param event      
!    */
!   void process(WorkFlowState state, WorkFlowEvent event);
  }
  
***************
*** 30,34 ****
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and 
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
--- 38,42 ----
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
***************
*** 48,52 ****
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project 
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
--- 56,60 ----
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
***************
*** 57,66 ****
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
!    
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many 
     individuals, who decided to donate the code to this project in
     respect of this licence.
--- 65,74 ----
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
! 
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many
     individuals, who decided to donate the code to this project in
     respect of this licence.

Index: WorkFlowAction.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlowAction.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WorkFlowAction.java	14 Mar 2003 09:17:27 -0000	1.2
--- WorkFlowAction.java	14 Mar 2003 15:06:04 -0000	1.3
***************
*** 6,10 ****
   * at the bottom of this file.                                               *
   *****************************************************************************/
!  
  package org.krysalis.workflow;
  
--- 6,10 ----
   * at the bottom of this file.                                               *
   *****************************************************************************/
! 
  package org.krysalis.workflow;
  
***************
*** 19,43 ****
   * @version CVS $Id$
   */
! public interface WorkFlowAction extends Component, ThreadSafe {
  
!     public final static String ROLE = WorkFlowAction.class.getName();
  
!     /**
!      * Execute the action.
!      *
!      * @param event Event, which the transition forces. This
!      *              parameter can be null for a e-transition.
!      * @param state The current state.
!      * @param parameters Transitions dependent parameters 
!      */
!     void perform(WorkFlowState state, WorkFlowEvent event, Parameters params);
  }
  
- 
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and 
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
--- 19,43 ----
   * @version CVS $Id$
   */
! public interface WorkFlowAction extends Component, ThreadSafe
! {
  
!   /**  */
!   public final static String ROLE = WorkFlowAction.class.getName();
  
!   /**
!    *
!    *
!    * @param state      
!    * @param event      
!    * @param params     
!    */
!   void perform(WorkFlowState state, WorkFlowEvent event, Parameters params);
  }
  
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
***************
*** 57,61 ****
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project 
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
--- 57,61 ----
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
***************
*** 66,75 ****
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
!    
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many 
     individuals, who decided to donate the code to this project in
     respect of this licence.
--- 66,75 ----
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
! 
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many
     individuals, who decided to donate the code to this project in
     respect of this licence.

Index: WorkFlowCondition.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlowCondition.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WorkFlowCondition.java	14 Mar 2003 09:17:27 -0000	1.2
--- WorkFlowCondition.java	14 Mar 2003 15:06:05 -0000	1.3
***************
*** 26,32 ****
       * Test this condition.
       *
       * @param event Event, which the transition forces. This parameter
       *              can be null for e-transitions.
-      * @param state The current state.
       * @param parameters Transitions dependent parameters 
       * @return If the method returns true, then the transition will be
--- 26,32 ----
       * Test this condition.
       *
+      * @param state The current state.
       * @param event Event, which the transition forces. This parameter
       *              can be null for e-transitions.
       * @param parameters Transitions dependent parameters 
       * @return If the method returns true, then the transition will be

Index: WorkFlowEvent.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlowEvent.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WorkFlowEvent.java	12 Mar 2003 13:32:42 -0000	1.1
--- WorkFlowEvent.java	14 Mar 2003 15:06:06 -0000	1.2
***************
*** 6,10 ****
   * at the bottom of this file.                                               *
   *****************************************************************************/
!  
  package org.krysalis.workflow;
  
--- 6,10 ----
   * at the bottom of this file.                                               *
   *****************************************************************************/
! 
  package org.krysalis.workflow;
  
***************
*** 18,42 ****
   * @version CVS $Id$
   */
! public interface WorkFlowEvent {
  
!     /**
!      * Return the identifier of the resourcel, which
!      * should force a transition of the state
!      *
!      * @return Identifier of the resource.
!      */
!     public String getResource();
  
!     public String getName();
  
!     Map getAttributes();
  }
  
- 
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and 
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
--- 18,52 ----
   * @version CVS $Id$
   */
! public interface WorkFlowEvent
! {
  
!   /**
!    * Return the identifier of the resourcel, which
!    * should force a transition of the state
!    *
!    * @return Identifier of the resource.
!    */
!   public String getResource();
  
!   /**
!    *
!    *
!    * @return
!    */
!   public String getName();
  
!   /**
!    *
!    *
!    * @return
!    */
!   Map getAttributes();
  }
  
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
***************
*** 56,60 ****
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project 
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
--- 66,70 ----
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
***************
*** 65,74 ****
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
!    
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many 
     individuals, who decided to donate the code to this project in
     respect of this licence.
--- 75,84 ----
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
! 
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many
     individuals, who decided to donate the code to this project in
     respect of this licence.

Index: WorkFlowManager.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlowManager.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** WorkFlowManager.java	14 Mar 2003 09:17:27 -0000	1.4
--- WorkFlowManager.java	14 Mar 2003 15:06:06 -0000	1.5
***************
*** 6,10 ****
   * at the bottom of this file.                                               *
   *****************************************************************************/
!  
  package org.krysalis.workflow;
  
--- 6,10 ----
   * at the bottom of this file.                                               *
   *****************************************************************************/
! 
  package org.krysalis.workflow;
  
***************
*** 13,39 ****
  
  /**
!  * 
!  * 
   *
   * @author <a href="mailto:[email protected]">Stephan Michels</a>
   * @version CVS $Id$
   */
! public interface WorkFlowManager extends Component, ThreadSafe {
  
!     public final static String ROLE = WorkFlowManager.class.getName();
  
!     void process(String resource, WorkFlowEvent event);
  
!     WorkFlowState lookup(String resource);
  
!     void release(WorkFlowState state);
  }
  
- 
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and 
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
--- 13,58 ----
  
  /**
!  *
!  *
   *
   * @author <a href="mailto:[email protected]">Stephan Michels</a>
   * @version CVS $Id$
   */
! public interface WorkFlowManager extends Component, ThreadSafe
! {
  
!   /**  */
!   public final static String ROLE = WorkFlowManager.class.getName();
  
!   /**
!    *
!    *
!    * @param resource   
!    * @param event      
!    */
!   void process(String resource, WorkFlowEvent event);
  
!   /**
!    *
!    *
!    * @param resource   
!    *
!    * @return
!    */
!   WorkFlowState lookup(String resource);
  
!   /**
!    *
!    *
!    * @param state      
!    */
!   void release(WorkFlowState state);
  }
  
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
***************
*** 53,57 ****
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project 
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
--- 72,76 ----
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
***************
*** 62,71 ****
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
!    
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many 
     individuals, who decided to donate the code to this project in
     respect of this licence.
--- 81,90 ----
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
! 
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many
     individuals, who decided to donate the code to this project in
     respect of this licence.

Index: WorkFlowMapper.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlowMapper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WorkFlowMapper.java	14 Mar 2003 09:17:27 -0000	1.1
--- WorkFlowMapper.java	14 Mar 2003 15:06:06 -0000	1.2
***************
*** 12,21 ****
--- 12,97 ----
  import org.apache.avalon.framework.thread.ThreadSafe;
  
+ /**
+  *
+  *
+  * @author <a href="mailto:[email protected]">Stephan Michels </a>
+  * @version CVS $Id$
+  */
  public interface WorkFlowMapper extends Component, ThreadSafe
  {
+ 
+   /**  */
    public final static String ROLE = WorkFlowMapper.class.getName();
  
+   /**
+    *
+    *
+    * @param resource   
+    *
+    * @return
+    */
    public String getWorkFlow(String resource);
  
+   /**
+    *
+    *
+    * @param resource   
+    *
+    * @return
+    */
    public String getWorkFlowStore(String resource);
  }
+ 
+ /*
+ The Krysalis Patchy Software License, Version 1.1_01
+ Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
+ 
+ This Licence is compatible with the BSD licence as described and
+ approved by http://www.opensource.org/, and is based on the
+ Apache Software Licence Version 1.1.
+ 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+ 
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in
+    the documentation and/or other materials provided with the
+    distribution.
+ 
+ 3. The end-user documentation included with the redistribution,
+    if any, must include the following acknowledgment:
+       "This product includes software developed for project
+        Krysalis (http://www.krysalis.org/)."
+    Alternately, this acknowledgment may appear in the software itself,
+    if and wherever such third-party acknowledgments normally appear.
+ 
+ 4. The names "Krysalis" and "Nicola Ken Barozzi" and
+    "Krysalis Metamorphosis" must not be used to endorse or promote products
+    derived from this software without prior written permission. For
+    written permission, please contact [email protected].
+ 
+ 5. Products derived from this software may not be called "Krysalis",
+    "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
+    without prior written permission of Nicola Ken Barozzi.
+ 
+ 6. This software may contain voluntary contributions made by many
+    individuals, who decided to donate the code to this project in
+    respect of this licence.
+ 
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED.  IN NO EVENT SHALL THE KRYSALIS PROJECT OR
+ ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+ ====================================================================*/

Index: WorkFlowState.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlowState.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WorkFlowState.java	12 Mar 2003 13:32:42 -0000	1.1
--- WorkFlowState.java	14 Mar 2003 15:06:06 -0000	1.2
***************
*** 18,46 ****
   * @version CVS $Id$
   */
! public interface WorkFlowState {
  
!     public String getResource();
  
!     public void setState(String name);
  
!     public String getState();
  
!     /**
!      * Set a parameter for a state.
!      *
!      * @param name Name of the parameter.
!      * @param value Value of the parameter.
!      */
!     void setAttribute(String name, Object value);
  
!     /**
!      * Return a parameter of a state.
!      *
!      * @param name Name of the parameter.
!      * @return Value of the parameter.
!      */
!     Object getAttribute(String name);
  
!     public Map getAttributes();
  }
  
--- 18,67 ----
   * @version CVS $Id$
   */
! public interface WorkFlowState
! {
  
!   /**
!    *
!    *
!    * @return
!    */
!   public String getResource();
  
!   /**
!    *
!    *
!    * @param name       
!    */
!   public void setState(String name);
  
!   /**
!    *
!    *
!    * @return
!    */
!   public String getState();
  
!   /**
!    * Set a parameter for a state.
!    *
!    * @param name Name of the parameter.
!    * @param value Value of the parameter.
!    */
!   void setAttribute(String name, Object value);
  
!   /**
!    * Return a parameter of a state.
!    *
!    * @param name Name of the parameter.
!    * @return Value of the parameter.
!    */
!   Object getAttribute(String name);
  
!   /**
!    *
!    *
!    * @return
!    */
!   public Map getAttributes();
  }
  
***************
*** 49,53 ****
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and 
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
--- 70,74 ----
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
***************
*** 67,71 ****
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project 
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
--- 88,92 ----
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
***************
*** 76,85 ****
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
!    
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many 
     individuals, who decided to donate the code to this project in
     respect of this licence.
--- 97,106 ----
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
! 
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many
     individuals, who decided to donate the code to this project in
     respect of this licence.

Index: WorkFlowStore.java
===================================================================
RCS file: /cvsroot/metamorphosis/krysalis-sandbox/workflow/src/java/org/krysalis/workflow/WorkFlowStore.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** WorkFlowStore.java	14 Mar 2003 09:17:27 -0000	1.2
--- WorkFlowStore.java	14 Mar 2003 15:06:07 -0000	1.3
***************
*** 6,10 ****
   * at the bottom of this file.                                               *
   *****************************************************************************/
!  
  package org.krysalis.workflow;
  
--- 6,10 ----
   * at the bottom of this file.                                               *
   *****************************************************************************/
! 
  package org.krysalis.workflow;
  
***************
*** 18,36 ****
   * @version CVS $Id$
   */
! public interface WorkFlowStore extends Component, ThreadSafe {
  
!     public final static String ROLE = WorkFlowStore.class.getName();
  
!     WorkFlowState lookup(String resource);
  
!     void release(WorkFlowState state);
  }
  
- 
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and 
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
--- 18,49 ----
   * @version CVS $Id$
   */
! public interface WorkFlowStore extends Component, ThreadSafe
! {
  
!   /**  */
!   public final static String ROLE = WorkFlowStore.class.getName();
  
!   /**
!    *
!    *
!    * @param resource   
!    *
!    * @return
!    */
!   WorkFlowState lookup(String resource);
  
!   /**
!    *
!    *
!    * @param state      
!    */
!   void release(WorkFlowState state);
  }
  
  /*
  The Krysalis Patchy Software License, Version 1.1_01
  Copyright (c) 2002 Nicola Ken Barozzi.  All rights reserved.
  
! This Licence is compatible with the BSD licence as described and
  approved by http://www.opensource.org/, and is based on the
  Apache Software Licence Version 1.1.
***************
*** 50,54 ****
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project 
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
--- 63,67 ----
  3. The end-user documentation included with the redistribution,
     if any, must include the following acknowledgment:
!       "This product includes software developed for project
         Krysalis (http://www.krysalis.org/)."
     Alternately, this acknowledgment may appear in the software itself,
***************
*** 59,68 ****
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
!    
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many 
     individuals, who decided to donate the code to this project in
     respect of this licence.
--- 72,81 ----
     derived from this software without prior written permission. For
     written permission, please contact [email protected].
! 
  5. Products derived from this software may not be called "Krysalis",
     "Krysalis Metamorphosis", nor may "Krysalis" appear in their name,
     without prior written permission of Nicola Ken Barozzi.
  
! 6. This software may contain voluntary contributions made by many
     individuals, who decided to donate the code to this project in
     respect of this licence.




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.