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 2006/01/11 14:15:59 UTC
svn commit: r368021 -
/lenya/trunk/src/java/org/apache/lenya/cms/workflow/usecases/InvokeWorkflow.java
Author: andreas
Date: Wed Jan 11 05:15:52 2006
New Revision: 368021
URL: http://svn.apache.org/viewcvs?rev=368021&view=rev
Log:
InvokeWorkflow.configure() calls super.configure(). This ensures that the view configuration is loaded.
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/workflow/usecases/InvokeWorkflow.java
Modified: lenya/trunk/src/java/org/apache/lenya/cms/workflow/usecases/InvokeWorkflow.java
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/workflow/usecases/InvokeWorkflow.java?rev=368021&r1=368020&r2=368021&view=diff
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/workflow/usecases/InvokeWorkflow.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/workflow/usecases/InvokeWorkflow.java Wed Jan 11 05:15:52 2006
@@ -28,19 +28,11 @@
* Invoke a workflow event on the current document. The event is obtained from the configuration in
* <code>cocoon.xconf</code>:<code>
* <pre>
- *
- *
- *
- *
- * <component-instance name="default/workflow.submit"
- * logger="lenya.usecases.workflow"
- * class="org.apache.lenya.cms.workflow.usecases.InvokeWorkflow">
- * <event id="submit"/>
- * </component-instance>
- *
- *
- *
- *
+ * <component-instance name="default/workflow.submit"
+ * logger="lenya.usecases.workflow"
+ * class="org.apache.lenya.cms.workflow.usecases.InvokeWorkflow">
+ * <event id="submit"/>
+ * </component-instance>
* </pre>
* </code>
*
@@ -104,6 +96,7 @@
* @see org.apache.avalon.framework.configuration.Configurable#configure(org.apache.avalon.framework.configuration.Configuration)
*/
public void configure(Configuration config) throws ConfigurationException {
+ super.configure(config);
this.event = config.getChild(ELEMENT_EVENT).getAttribute(ATTRIBUTE_ID);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org