cancel
Showing results for 
Search instead for 
Did you mean: 

TimeCycle explanation

wheli
Champ in-the-making
Champ in-the-making
Hi,

I am having some difficulty finding information in your manual. We are planning on utilizing a timeCycle in one of our bpmn files:

<timerEventDefinition>
<timeCycle>0 0 5 * * ? *</timeCycle>
</timerEventDefinition>

Once I upload the file, this will cause the timer to kick off everyday at 5AM correct? What happens if we restart our tomcat application that is hosting Activiti? Will the report still automatically kick off at 5AM? or will we have to manually kick it off to get the timer going again?

Thanks!
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Do you have the time cycle in a start event? If so the timer is stored in the database, so after restart it will still automatically kick off at 5AM yes.

Best regards,

wheli
Champ in-the-making
Champ in-the-making
It is, and we are not seeing the reports kick off daily…

<code>
<startEvent id="timerstartevent1" name="Timer start">
      <timerEventDefinition>
        <timeCycle>0 0 5 * * ? *</timeCycle>
      </timerEventDefinition>
    </startEvent>
</code>

We are using v5.16, could that be part of the problem?

jbarrez
Star Contributor
Star Contributor
We do have a test for this which looks similar to what you have: https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/test/java/org/activiti/...

Did you enable the job executor?

wheli
Champ in-the-making
Champ in-the-making
Yep. In my spring config:

<code>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
   <property name="dataSource" ref="dataSource" />
   <property name="transactionManager" ref="transactionManager" />
   <property name="databaseSchemaUpdate" value="true" />
   <property name="jobExecutorActivate" value="true" />
        <property name="jobExecutor" ref="jobExecutorBean" />
<property name="enableDatabaseEventLogging" value="false" />
    <property name="customFormTypes">
      <list>
        <bean class="org.activiti.explorer.form.UserFormType"/>
        <bean class="org.activiti.explorer.form.ProcessDefinitionFormType"/>
        <bean class="org.activiti.explorer.form.MonthFormType"/>  
      </list>
    </property>
  </bean>
</code>
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.