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 2007/05/16 18:25:36 UTC
Re: Locking problem (was Re: DO NOT REPLY [Bug 34994] - Basic WebDAV
functionality)
Thorsten Scherler schrieb:
[...]
> No transition found for event [lockInvolvedObjects] in state [start]!
The AbstractUsecase contains a state machine which ensures that the
methods are called in the correct order. This avoids inconsistent
states (e.g., that execute() is called before the execution conditions
are checked).
Here's a list of the transitions (sourceState, destState, event/method):
("start", "preChecked", "checkPreconditions"),
("preChecked", "nodesLocked", "lockInvolvedObjects"),
("nodesLocked", "execChecked", "checkExecutionConditions"),
("execChecked", "execChecked", "checkExecutionConditions"),
("execChecked", "executed", "execute"),
("executed", "postChecked", "checkPostconditions") };
According to the state machine, you have to call checkPreconditions()
before you may call lockInvolvedObjects().
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org