How to access the "Timer Event Definition" variables programmatically

Hi all,

I am trying to get and set the Time Cycle for Boundary Timers through flowable engine. I could see TimerEventDefinition contains these info.
How to access these variables (Time Cycle, Time Duration etc…) using this TimerEventDefinition class.

Please have a look into the way i tried,

TimerEventDefinition.class
image

Kindly share your ideas !!

Thanks in advance,
Sriram B

You can get all model information through the repositoryService.getBpmnModel(processDefinitionId) method, and find the info by going into the returned BpmnModel.getMainProcess().

Thanks @joram

I casted EventDefinition result to TimerEventDefinition and i am able to access the timeDuration, timeCycle etc…

Regards,
Sriram B.