Andreas Hartmann wrote:
Jörn Nettingsmeier schrieb:
i'm not sure if i understand this. right now, the following seems to happen when somebody creates a document with the default creator:

* a new document is created by copying the doctype sample;
* a metadata file is created.

this metadata has no <workflowVersion/> elements yet. all i'm asking is that upon creation, a workflowVersion entry with number 0 and "event:create" is created, stating the date of creation and the user who did it.

That would require that the workflow schema contains a state
"non-existent" with a transition to the state "authoring", triggered
by the event "create". Does this make sense? What do the others think?

i see the problem now, thanks for explaining. but these states could be implicit, no need to clutter up the workflow schemas with obvious things. i tried to look the previous discussion up in the archive, but i had no luck. do you have a pointer?

this seems to be orthogonal to the actual workflow definition for a doctype (i.e. how many stages etc.), and i don't see how this could possibly have implications for the robustness of the repository.

It would mean that

- either you can't add documents without adding the workflow meta data

i see no problems with this requirement. you are always advocating to handle documents only via a well-defined api. where is the problem to tell that api to always set a workflow state (it might even be called "uninitialized", fwiw)

- or the system would have to handle both types (with and without
  workflow meta data) in the same way.

sounds needlessly complicated.

"event:create" is an event outside of whatever workflow you want to define.

-1

IMO there shouldn't be "system" events which are not defined by the
workflow schema.

agreed in general (i.e. the system should not generate any more special events after creation). but since the creation of a document happens outside of a workflow but does have implications for the workflow, it seems natural for me that the document creator should set an initial workflow state. and to keep this change from affecting the workflow.xml files, i'd suggest to have an implicit, reserved state such as event:create that does not need explicit state transitions, but implies the state "authoring".

the reason i want this is to be able to display meta information on the page ("last modified on <date> by <user>", or even "created by <user>").

I'd rather handle this separated from the workflow, e.g. using
a "created:" meta data entry.

i could live with that, although doing it all via the workflow state mechanism seems cleaner and more generic to me, even if it is more intrusive.

what do you think?

jörn


--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

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

Reply via email to