[EMAIL PROTECTED] wrote:
Author: andreas
Date: Fri Aug 3 03:02:14 2007
New Revision: 562400
URL: http://svn.apache.org/viewvc?view=rev&rev=562400
Log:
Revisions usecase: Removed NPE workaround, use parameter for workflow event
thanks for patching this up!
+ if (latestVersion != null) {
+ state = latestVersion.getState();
+ } else {
+ Workflow workflow =
WorkflowUtil.getWorkflowSchema(this.manager,
+ getSession(), getLogger(), sourceDoc);
+ state = workflow.getInitialState();
+ }
+ setParameter("workflowState", state);
+ }
i know we've talked about that a while ago, but remind me again: why is
this special case nessary at all? the way i see it, creating a document
should create an initial version with a valid workflow state of
"authoring". why don't we rather fix it in the creation usecase?
regards,
jörn
--
jörn nettingsmeier
home://germany/45128 essen/lortzingstr. 11/
http://spunk.dnsalias.org
phone://+49/201/491621
Kurt is up in Heaven now.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]