Felix Röthenbacher wrote:
Hi

I'm sort of confused about parameter handling in a Lenya usecase
(there is little to none documentation about it).

Thanks for the hint, I added some lines about parameters.


- How and when are the parameters initialized?

usecases.js, line 81 of LCR 331239


- Which parameters are accessible?

All except lenya.usecase, lenya.continuation, submit
(see documentation)


- It's not possible to call getParameter()
  inside AbstractUsecase.initParameters()
  -> the (request) parameters seems not be initialized
  at this point.

This is true. Is this a problem? Maybe you'd like to file an
enhancement bug.


- why are request parameters put into the list?
  why not access them through the request object?

1. because there should be only one way to parameterize usecases

2. to avoid the connection to the request object (for instance,
   to use the UsecaseInvoker decoupled from the current request,
   and for scheduling usecases)


- what if request parameters have the same name?

The last one will be used. You might want to file a bug.


Anyway - feel free to question these issues, the usecase framework
isn't yet what I'd call mature, although it already proved quite useful.

-- Andreas




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

Reply via email to