Search code examples
javaactivitibusiness-process-management

Boundary Event on User Task in Activiti not triggerred


I am using Activiti BPM to implement a simple workflow. This workflow sends email to users and awaits user feedback. If feedback is not received for 24 hrs, it will again send the email and await for response.

I used boundary event like this:

      <boundaryEvent id="boundarytimer1" name="Timer" attachedToRef="userTask" cancelActivity="true">
    <timerEventDefinition>
      <timeDuration>PT24H</timeDuration>
    </timerEventDefinition>
  </boundaryEvent>

I can see timer job created in ACT_RU_JOB table. However this job is not triggerred.


Solution

  • Probably you didn't set jobExecutorActivate=true inside your Activiti configuration.

    <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="history" value="activity"/>
    </bean>
    

    Hope it helps.