Skip to Content
0
Former Member
Dec 12, 2007 at 03:24 PM

SchedulerTask and custom properties

15 Views

Hi community,

I have a SchedulerTask that does some document fetching (RSS) and stores these in the K M which works really fine.

I wondered if there is a possibility to set Custom properties to the SchedulerTask like you would do with a standard RepositoryService, within the src.config folder.

<b>Example:</b>

<ConfigClass name="com.my.TheService"  extends="RepositoryService">
 <attribute name="class" type="class" constant="com.my.TheService"/>
 <attribute name="languages" type="string" />
 <attribute name="whatever" type="string" />
 </ConfigClass>
<Configurable configclass="com.my.TheService">
 <property name="name" value="com.my.TheService" />
 <property name="languages" value="de" />
 <property name="whatever" value="thisandthat" />
</Configurable>

When using the same syntax as with a the repository service above the SchedulerTask won't come up like he used to do... ;-(

Maybe I'm missing something? Do I need to write <i>SchedulerService</i> a service that calls the SchedulerTask via <i>createSchedulerEntry(..)</i>? (Right now I'm using a <i>RFServiceWrapper</i>)

Does anyone have a working example for the files to be found under src.config/install -> (data or meta) -> cm -> services-> schedulertasks -> ...

regards,

Christian