Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 25087 invoked from network); 1 Mar 2004 11:04:20 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 1 Mar 2004 11:04:20 -0000 Received: (qmail 79673 invoked by uid 500); 1 Mar 2004 11:03:53 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 79482 invoked by uid 500); 1 Mar 2004 11:03:51 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 79471 invoked by uid 500); 1 Mar 2004 11:03:51 -0000 Delivered-To: apmail-cocoon-2.1-cvs@apache.org Received: (qmail 79467 invoked from network); 1 Mar 2004 11:03:51 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 1 Mar 2004 11:03:51 -0000 Received: (qmail 24991 invoked by uid 1653); 1 Mar 2004 11:04:17 -0000 Date: 1 Mar 2004 11:04:17 -0000 Message-ID: <20040301110417.24990.qmail@minotaur.apache.org> From: andreas@apache.org To: cocoon-2.1-cvs@apache.org Subject: cvs commit: cocoon-2.1/src/blocks/workflow/java/org/apache/lenya/workflow/impl History.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N andreas 2004/03/01 03:04:17 Modified: src/blocks/workflow/java/org/apache/lenya/workflow Condition.java src/blocks/workflow/java/org/apache/lenya/workflow/impl History.java Log: added more javadocs Revision Changes Path 1.3 +9 -3 cocoon-2.1/src/blocks/workflow/java/org/apache/lenya/workflow/Condition.java Index: Condition.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/workflow/java/org/apache/lenya/workflow/Condition.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- Condition.java 1 Mar 2004 11:00:43 -0000 1.2 +++ Condition.java 1 Mar 2004 11:04:17 -0000 1.3 @@ -56,7 +56,13 @@ package org.apache.lenya.workflow; /** - * Workflow condition. + *

A condition can prevent a transition from firing, + * based on the current situation. Examples:

+ *
    + *
  • Does the current user have a certain role on the current URL?
  • + *
  • Does a certain state variable have a certain value (e.g., is the document published)? (BooleanVariableCondition)
  • + *
  • Is the sun shining? (e.g., if the weather report may only be published on sunny days)
  • + *
* * @author Andreas Hartmann * @version $Id$ 1.3 +11 -5 cocoon-2.1/src/blocks/workflow/java/org/apache/lenya/workflow/impl/History.java Index: History.java =================================================================== RCS file: /home/cvs/cocoon-2.1/src/blocks/workflow/java/org/apache/lenya/workflow/impl/History.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- History.java 1 Mar 2004 10:36:22 -0000 1.2 +++ History.java 1 Mar 2004 11:04:17 -0000 1.3 @@ -82,10 +82,16 @@ import org.w3c.dom.Element; /** - * @author andreas - * - * To change the template for this generated type comment go to - * Window>Preferences>Java>Code Generation>Code and Comments + *

The history of a workflow instance contains a list of all + * versions of the instance. A version contains + *

+ *
    + *
  • the state,
  • + *
  • the event that caused the transition (omitted in the first version).
  • + *
+ * + * @author Andreas Hartmann + * @version $Id$ */ public abstract class History implements WorkflowListener { public static final String WORKFLOW_ATTRIBUTE = "workflow";