You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Andreas Hartmann <an...@apache.org> on 2005/01/03 11:11:48 UTC

Re: tasks vs usecases

Gregor J. Rothfuss wrote:
> it seems to me that we can replace the ant tasks in lenya that are used 
> as "backends" for most of our usecases today with proper usecase classes 
> that do extend AbstractUsecase or DocumentUsecase.
> 
> open questions:
> 
> how do we schedule usecases? (the scheduler, which is currently a 
> seperate servlet, interacts with tasks.)

This question bothers me for quite a long time ...
I guess it needs more brainstorming, feel free to make
proposals.

> how do we set the workflow situation from a usecase? (there is a 
> getSituation, but not a setSituation in AbstractUsecase)

We could probably just add the setSituation() method to the
Usecase interface and pass the situation from the flowscript
(where it is already available).

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org


Re: tasks vs usecases

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

[...]

>> how do we set the workflow situation from a usecase? (there is a 
>> getSituation, but not a setSituation in AbstractUsecase)
> 
> 
> We could probably just add the setSituation() method to the
> Usecase interface and pass the situation from the flowscript
> (where it is already available).

This is not necessary, as the situation is already obtained
by AbstractUsecase. I added methods to conviniently invoke a
workflow event on a document to AbstractUsecase and DocumentUsecase.

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail:              dev-unsubscribe@lenya.apache.org
For additional commands, e-mail:            dev-help@lenya.apache.org
Apache Lenya Project                          http://lenya.apache.org