Jörn Nettingsmeier wrote:

[...]

then i created a file src/java/org/apache/lenya/cms/site/usecases/ChangeNotification.java.

Just a note - that should go into the notification module.

ok. so i create src/modules/notification/java/src/org/apache/lenya/cms/site/usecases/ChangeNotification.java ? does that path make sense? or should it rather be in src/modules/notification/java/src/org/apache/lenya/notification ?

IMO it should be

org.apache.lenya.notification.usecases.ChangeNotification


when i do "./build.sh --noconfig" it seems to be built along with the rest. it does nothing so far but implements the same methods as ChangeVisibility.

now when i restart lenya and look at the workflow menu, the new option appears to be grayed out. do i need to register this new usecase somewhere?

Yes, use a patch file

modules/notification/config/cocoon-xconf/usecase-changeNotification.xconf

i tried that, and it does not change anything. still grayed out. my patchfile says:

[EMAIL PROTECTED]:/local/lenya-build/lenya_1_4_X/src/modules/notification/config/cocoon-xconf> cat usecase-site-changeNotification.xconf
<?xml version="1.0"?>
<xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/[EMAIL PROTECTED] = 'site.changeNotification']"> <component-instance name="site.changeNotification" logger="lenya.site" class="org.apache.lenya.cms.site.usecases.ChangeNotification"/>
  </xconf>

That looks good ...

Would you mind attaching a patch including all your changes?

Thanks!

-- Andreas



--
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                     [EMAIL PROTECTED]


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

Reply via email to