You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by "Gregor J. Rothfuss" <gr...@apache.org> on 2005/08/03 14:08:14 UTC

Re: svn commit: r227201 - /lenya/trunk/src/java/org/apache/lenya/cms/workflow/DocumentWorkflowable.java

michi@apache.org wrote:
> Author: michi
> Date: Wed Aug  3 04:47:09 2005
> New Revision: 227201
> 
> URL: http://svn.apache.org/viewcvs?rev=227201&view=rev
> Log:
> DocumentWorkflowable.getWorkflowSchemaURI() returns null when workflow schema is null (no wf schema assigned to resource type)

why would a doctype have no wf schema attached? smells like a workaround 
to me.

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


Re: svn commit: r227201 - /lenya/trunk/src/java/org/apache/lenya/cms/workflow/DocumentWorkflowable.java

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:
> Gregor J. Rothfuss wrote:
> 
>> michi@apache.org wrote:
>>
>>> Author: michi
>>> Date: Wed Aug  3 04:47:09 2005
>>> New Revision: 227201
>>>
>>> URL: http://svn.apache.org/viewcvs?rev=227201&view=rev
>>> Log:
>>> DocumentWorkflowable.getWorkflowSchemaURI() returns null when 
>>> workflow schema is null (no wf schema assigned to resource type)
>>
>> why would a doctype have no wf schema attached?
> 
> using a doctype doesn't mean one needs a workflow

+1

(BTW, the commit was me :) )

One might consider a "trivial" built-in workflow with empty state,
transition, and event sets. But this would imply that no workflow
event might be invoked at all, which would require a special treatment
for this "trivial" workflow schema. I wouldn't like that situation.

But maybe there's an even better solution?

-- Andreas


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


Re: [VOTE] require a wf schema for all doctypes

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

> i propose we require a wf schema for all doctypes
> 
> +1

-1

Reason:

Requiring a wf schema for all doctypes would imply the need for
a trivial wf schema which accepts all events (this would mean an
infinite number of transitions which is out of the scope of a DFA).

The Lenya workflow schema doesn't support this functionality.
Each event which can be accepted has to be declared.

Workarounds:

1. Extend the workflow schema to indefinite automata:

    <transition from="foo" to="bar">
      <event name="*"/>
      ...
    </transition>

    I'd rather not suggest that since I'm not familiar with the
    semantic implications. Maybe someone else is?

2. A "special" workflow schema.

    -1


I don't really like the optional wf assignment, but I don't see a
solution in this case.

-- Andreas


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


Re: [VOTE] require a wf schema for all doctypes

Posted by Michael Wechner <mi...@wyona.com>.
Doug Chestnut wrote:

>>
>> -1  This requirement is just imposing something which is in many cases
>> not necessary at all, e.g.
>>
>> Search Engine Screen
>> Dynamic Listing
>> Aggregation of various content
>> ....
>
>
> I am afraid that my knowledge of doctypes/publets in 1.4 is too 
> limited for me to vote, but wouldn't the above examples be considered 
> usecases and not doctypes? (possibly usecases of the doctype 
> publet?).  Sorry for another stupid question :).


no problem ;-) I might have to explain why the change was done in the 
first place:

When you apply the menu transformer, which is a meta-stylesheet then the 
workflow is being triggered within (global-sitemap.xmap, see lenya-page) 
and this leads
to an error if there is no workflow. So the problem isn't really about 
doctypes
or usecases or whatsoever.

But beside the original reason for the fix I strongly believe that doctypes
do not necessarily need a workflow. For instance an aggregation doctype 
makes
sense in many cases resp. a portlet doctype, whereas the aggregated 
content might
have a workflow, but the envelope doesn't need on.

Michi

>
> --Doug
>
>>
>> Let's not put a requirement which makes development very rigid.
>>
>> Michi
>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: dev-help@lenya.apache.org
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
>
>


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


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


Re: [VOTE] require a wf schema for all doctypes

Posted by Doug Chestnut <dh...@virginia.edu>.

Michael Wechner wrote:
> Gregor J. Rothfuss wrote:
> 
>> Michael Wechner wrote:
>>
>>> Gregor J. Rothfuss wrote:
>>>
>>>> Michael Wechner wrote:
>>>>
>>>>> using a doctype doesn't mean one needs a workflow
>>>>
>>>>
>>>>
>>>>
>>>> how come?
>>>
>>>
>>>
>>>
>>> for instance a search engine screen or a dynamic listing ....
>>
>>
>>
>> they should rather use a wf schema that only has one transition.
> 
> 
> 
> why a transition at all?
> 
>> otherwise, you end up with hacks all over the codebase to handle the 
>> 'no wf' case,
> 
> 
> 
> what hacks?
> 
>> and that is just wrong.
>>
>> i propose we require a wf schema for all doctypes
> 
> 
> 
> what if you don't use a doctype and want to apply the Lenya menu 
> transformer?
> 
>>
>> +1
> 
> 
> 
> -1  This requirement is just imposing something which is in many cases
> not necessary at all, e.g.
> 
> Search Engine Screen
> Dynamic Listing
> Aggregation of various content
> ....

I am afraid that my knowledge of doctypes/publets in 1.4 is too limited 
for me to vote, but wouldn't the above examples be considered usecases 
and not doctypes? (possibly usecases of the doctype publet?).  Sorry for 
another stupid question :).

--Doug

> 
> Let's not put a requirement which makes development very rigid.
> 
> Michi
> 
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: dev-help@lenya.apache.org
>>
>>
> 
> 

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


Re: [VOTE] require a wf schema for all doctypes

Posted by Michael Wechner <mi...@wyona.com>.
Gregor J. Rothfuss wrote:

> Michael Wechner wrote:
>
>> Gregor J. Rothfuss wrote:
>>
>>> Michael Wechner wrote:
>>>
>>>> using a doctype doesn't mean one needs a workflow
>>>
>>>
>>>
>>> how come?
>>
>>
>>
>> for instance a search engine screen or a dynamic listing ....
>
>
> they should rather use a wf schema that only has one transition.


why a transition at all?

> otherwise, you end up with hacks all over the codebase to handle the 
> 'no wf' case,


what hacks?

> and that is just wrong.
>
> i propose we require a wf schema for all doctypes


what if you don't use a doctype and want to apply the Lenya menu 
transformer?

>
> +1


-1  This requirement is just imposing something which is in many cases
not necessary at all, e.g.

Search Engine Screen
Dynamic Listing
Aggregation of various content
....

Let's not put a requirement which makes development very rigid.

Michi

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


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


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


[VOTE] require a wf schema for all doctypes

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Michael Wechner wrote:
> Gregor J. Rothfuss wrote:
> 
>> Michael Wechner wrote:
>>
>>> using a doctype doesn't mean one needs a workflow
>>
>>
>> how come?
> 
> 
> for instance a search engine screen or a dynamic listing ....

they should rather use a wf schema that only has one transition. 
otherwise, you end up with hacks all over the codebase to handle the 'no 
wf' case, and that is just wrong.

i propose we require a wf schema for all doctypes

+1

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


Re: svn commit: r227201 - /lenya/trunk/src/java/org/apache/lenya/cms/workflow/DocumentWorkflowable.java

Posted by Michael Wechner <mi...@wyona.com>.
Gregor J. Rothfuss wrote:

> Michael Wechner wrote:
>
>> using a doctype doesn't mean one needs a workflow
>
>
> how come?


for instance a search engine screen or a dynamic listing ....

> i don't recall a vote on this.


this change was rather fixing a bug than implementing a feature.

But you might want to suggest a vote.

Michi

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


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


Re: svn commit: r227201 - /lenya/trunk/src/java/org/apache/lenya/cms/workflow/DocumentWorkflowable.java

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Michael Wechner wrote:

> using a doctype doesn't mean one needs a workflow

how come? i don't recall a vote on this.

>> smells like a workaround to me.
> 
> I don't think so

see above

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


Re: svn commit: r227201 - /lenya/trunk/src/java/org/apache/lenya/cms/workflow/DocumentWorkflowable.java

Posted by Michael Wechner <mi...@wyona.com>.
Gregor J. Rothfuss wrote:

> michi@apache.org wrote:
>
>> Author: michi
>> Date: Wed Aug  3 04:47:09 2005
>> New Revision: 227201
>>
>> URL: http://svn.apache.org/viewcvs?rev=227201&view=rev
>> Log:
>> DocumentWorkflowable.getWorkflowSchemaURI() returns null when 
>> workflow schema is null (no wf schema assigned to resource type)
>
>
> why would a doctype have no wf schema attached?


using a doctype doesn't mean one needs a workflow

> smells like a workaround to me.


I don't think so

Michi

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


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


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