AnsweredAssumed Answered

Start event timer not firing.

Question asked by nikz2 on Jun 23, 2015
Latest reply on Jun 24, 2015 by martin.grofcik
I am still learning activiti.
I am trying to do some simple process, that shows a message every minute.
So i declare
    <startEvent id="timerstartevent1" name="Timer start">
Inside context.xml
  <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="asyncExecutorEnabled" value="true" />
    <property name="asyncExecutorActivate" value="true" />
     <property name="deploymentResources"
    value="classpath*:diagrams/autodeploy.*.bpmn" />

My service Task

public class HelloAccountService  implements JavaDelegate  {
   public void execute(DelegateExecution execution) throws Exception {
      ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(
      AccountService accServ = (AccountService)applicationContext.getBean("accountService");
      Account acc = accServ.getAccount("A7UJ9A0000YZ");
      JOptionPane.showMessageDialog(null, acc.getAccount());


As i understood, that's must be enough with process deployed. But it's not working.
By the way, which would be the best way to inject data access services into my task class?