Jörn Nettingsmeier wrote:

[...]

i tried to implement this by calling

WorkflowUtil.invoke(this.manager,
    getSession(),
    getLogger(),
    getSourceDocument(),
    "create");

looks good

org.apache.lenya.workflow.WorkflowException: The event [create] cannot be invoked on the document [EMAIL PROTECTED]

[...]

ok, so this is probably not the correct approach. i made up the "create" event to see what would happen - do i have to declare events somewhere?

Yes, in your workflow schema declaration.
You have to add at least one transition which starts at the initial state
and is triggered by the "create" event.

or maybe i should not call the WorkflowUtil helper but rather create a newVersion directly?

No, your approach is fine.

-- Andreas



--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to