AnsweredAssumed Answered

Schedule Job Content

Question asked by vinaxwater on Mar 4, 2011
Dear friend,

I want schedule job in alfresco but i see schedule work not fine.
I have:
1. scheduled-jobs-context:
<!– START –>
   
    <bean id="fileExcelReportJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
        <property name="jobClass">
            <value>org.alfresco.repo.content.report.ExcelReportJob</value>
        </property>
        <property name="jobDataAsMap">
            <map>
                <entry key="excelReport">
                    <ref bean="excelReport" />
                </entry>
            </map>
        </property>
    </bean>
   
    <bean id="excelReportTrigger" class="org.alfresco.util.CronTriggerBean">
        <property name="jobDetail">
            <ref bean="fileExcelReportJobDetail" />
        </property>
        <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property>
        <!– trigger at every minute –>
        <property name="cronExpression">
            <value>0 * * * * ?</value>
            <!– 0 0 22 * ? SUN * second/min/hour/day of month/month/day of week/year –>
        </property>
    </bean>
    <!– END –>

2. content-services-context.xml:
 <!– START –>
   <!– Performs the excel report –>
   <bean id="baseExcelReport" class="org.alfresco.repo.content.report.ExcelReport" abstract="true">
      <property name="protectDays" >
         <value>1</value>
      </property>
   </bean>

   <bean id="excelReport" parent="baseExcelReport">
   </bean>
   <!– END –>

3. all class and beans not error (build successful).

It's not work fine. I have do with this please for me idea.

Thanks and Regards.
vinaxwatwer

Outcomes