Hi,
I have a timer start event in the camunda which runs on 16:00 hours daily. After that there is an external task.
How can i get the current date and time of timer event??
Hi,
I have a timer start event in the camunda which runs on 16:00 hours daily. After that there is an external task.
How can i get the current date and time of timer event??
@Pawan_Pandey you can use the ManagementService to query for jobs of type timer (and other criteria, such as the process definition if you need to filter it down further) and you can get the due date for the jobs that result from the query. In the Java API, that would be something like this:
ManagementService.createJobQuery().timers()........singleResult().getDueDate();
Obviously, that code is a train wreck, but it show the relevant path
The same thing can be done with the REST API: Get Jobs | docs.camunda.org
I am getting a list of due date in this case.
My requirement is to get the currently execution date and time inside collect sales data once the execution is started.