Hi All!

I am using Lenya1.2 right now. I'm trying to write a custom Workflow-Condition. To do so my Java-class extends org.apache.lenya.workflow.impl.AbstractCondition.

The condition is intended to compare the current user with the creator of a document. I managed to get the current user:
CMSSituation situationImpl = (CMSSituation) situation;
String currentUser = situationImpl.getUserId();
But I'm struggeling to get access to the Creator of the Document. My first idea was to use the DublinCore-class of a document to access the meta-data of the document. Unfortunately I didn't find a way to retrieve the current Document.

1)Is this the right list or should I post to the developers list?

2)Has anyone an idea how this could work?

3)Is there another way than the one I tried to go to ensure that only the creator of a document can actually edit it?

Thanks alot!
Regards!
Christoph de Mattia

_________________________________________________________________
Sie suchen E-Mails, Dokumente oder Fotos? Die neue MSN Suche Toolbar mit Windows-Desktopsuche liefert in sekundenschnelle Ergebnisse. Jetzt neu! http://desktop.msn.de/ Jetzt gratis downloaden!


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

Reply via email to