You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Michael Wechner <mi...@wyona.com> on 2004/06/24 11:40:13 UTC

Workflow and editing

I have a question re workflow and editing:

I have a document with a workflow, but I don't want to assign a workflow
event for editing, e.g.

        <item uc:usecase="edit" 
href="?lenya.step=open&amp;form=document">Edit&#160;Metadata&#160;with&#160;Forms</item>
        <!--<item wf:event="edit" uc:usecase="edit" 
href="?lenya.step=open&amp;form=document">Edit&#160;Metadata&#160;with&#160;Forms</item>-->


Opening the document works without a problem, but when I try to save it 
then I receive the following error:

No transition found for event [null]!

org.apache.lenya.workflow.WorkflowException: No transition found for 
event [null]!

cause: org.apache.lenya.workflow.WorkflowException: No transition found 
for event [null]


I know that the form editor implements the workflow implementation, but
if I don't specify an event at startup should't it then be dismissed and not
just when a workflow doesn't exist?

Or is there a reason?

Thanks

Michi


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Workflow and editing

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:

> Andreas Hartmann wrote:
> 
>>
>> I'm -1 for changing the worfklow action. When you invoke the
>> workflow action, then you should provide an event (which is
>> a required parameter of this action).
> 
> 
>>
>> I would add a RequestParameterSelector in the sitemap which
>> checks if the lenya.event parameter exists and decides if the
>> action should be called.
> 
> 
> 
> ok, then we should change the usecase.xmap at the core, right?

(In want of a better usecase/workflow integration mechanism)
Yes.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Workflow and editing

Posted by Michael Wechner <mi...@wyona.com>.
Andreas Hartmann wrote:

>
> I'm -1 for changing the worfklow action. When you invoke the
> workflow action, then you should provide an event (which is
> a required parameter of this action).

>
> I would add a RequestParameterSelector in the sitemap which
> checks if the lenya.event parameter exists and decides if the
> action should be called.


ok, then we should change the usecase.xmap at the core, right?

because at the moment we can produce conflicts ...

>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Workflow and editing

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Andreas Hartmann wrote:

>> I know that the form editor implements the workflow implementation, but
>> if I don't specify an event at startup should't it then be dismissed 
>> and not
>> just when a workflow doesn't exist?
> 
> 
> I'm -1 for changing the worfklow action. When you invoke the
> workflow action, then you should provide an event (which is
> a required parameter of this action).

-1 for allowing no event. lenya should tighten up its contracts for 
easier debugging and more robust code, not loosen them


-- 
Gregor J. Rothfuss
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://wyona.com                   http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com                       gregor@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org


Re: Workflow and editing

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:

> I have a question re workflow and editing:
> 
> I have a document with a workflow, but I don't want to assign a workflow
> event for editing, e.g.

[...]

> I know that the form editor implements the workflow implementation, but
> if I don't specify an event at startup should't it then be dismissed and 
> not
> just when a workflow doesn't exist?

I'm -1 for changing the worfklow action. When you invoke the
workflow action, then you should provide an event (which is
a required parameter of this action).

I would add a RequestParameterSelector in the sitemap which
checks if the lenya.event parameter exists and decides if the
action should be called.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org