cancel
Showing results for 
Search instead for 
Did you mean: 

boundary timer event, timer cycle

shreejitray
Champ in-the-making
Champ in-the-making
Hi,
    I am designing a feature where if the process is pending on a user task for a certain amount of time a service task should be executed on repeat after a preset time duration. I am aware of activiti's boundary timer event configuration as

boundaryEvent id="sendReminder" name="Timer" attachedToRef="sendRemindermail" cancelActivity="false">
      <timerEventDefinition>
        <timeCycle>R5/PT30S</timeCycle>
      </timerEventDefinition>
    </boundaryEvent>
  

But in my case I face an error saying unable to parse cron expression R5/PT30S.

It seems my configuration is only configured to accept cron expression and not ISO8016 time duration expressions. "Time duration" and "time date" fields accept ISO8016 expression but "timer cycle" field only accepts cron expression.
Please help me figure out how to enable my activiti to accept ISO8016 time duration expression in "timer cycle field".
1 REPLY 1

cjose
Elite Collaborator
Elite Collaborator
Hi,

The <timeCycle>R5/PT30S</timeCycle> you have configured is perfectly valid. Could you please post your complete bpmn20.xml so that I can test this at my end? Please see an example bpmn file which I created that matches your requirement and it works as per your requirement against the latest version (1.5) of Alfresco Activiti.

Regards,