Hi Maritn,
Thanks for reply. I have configured timer event that will fire every 1 minute . But it is firing 2 times in 1 minutes.
Here is my configuration, java method and log. Please help me to solve this issue.
<process id="TimerAutoExec" isExecutable="true">
<documentation>Timer Auto Exec</documentation>
<startEvent id="start">
<timerEventDefinition>
<timeCycle>R/PT1M</timeCycle>
</timerEventDefinition>
</startEvent>
<sequenceFlow id="flow_start" sourceRef="start" targetRef="retrieve_data"></sequenceFlow>
<serviceTask id="retrieve_data" name="Retrieve New Data" activiti:class="com.epsilon.al.ml.manager.ActivitiDelegate"></serviceTask>
<endEvent id="endevent1" name="End"></endEvent>
</process>
public class ActivitiDelegate implements JavaDelegate {
private static final Logger logger = LoggerFactory.getLogger(ActivitiDelegate.class);
@Override
public void execute(DelegateExecution arg0) throws Exception {
logger.info("——————–> Enter into delegate execute method");
}
}
2016-08-25_05:28:09.643 [pool-2-thread-2] INFO c.e.al.ml.manager.ActivitiDelegate - ——————–> Enter into delegate execute method
2016-08-25_05:28:43.098 [pool-4-thread-2] INFO c.e.al.ml.manager.ActivitiDelegate - ——————–> Enter into delegate execute method
2016-08-25_05:29:09.994 [pool-2-thread-3] INFO c.e.al.ml.manager.ActivitiDelegate - ——————–> Enter into delegate execute method
2016-08-25_05:29:43.256 [pool-4-thread-3] INFO c.e.al.ml.manager.ActivitiDelegate - ——————–> Enter into delegate execute method
2016-08-25_05:30:10.178 [pool-2-thread-1] INFO c.e.al.ml.manager.ActivitiDelegate - ——————–> Enter into delegate execute method
2016-08-25_05:30:43.363 [pool-4-thread-1] INFO c.e.al.ml.manager.ActivitiDelegate - ——————–> Enter into delegate execute method
Thanks,
Mehrab