cancel
Showing results for 
Search instead for 
Did you mean: 

Capture Process Start and End Dates

pseymour75
Champ in-the-making
Champ in-the-making
Hi All

Apologies for this simple question, but I'm just starting to look at Activiti.

I'm using the Eclipse plugin to create my business processes and what I need to do is capture the process start/finish date and store them as a process variables.

Can someone point me in the right direction of how to do this in Eclipse? (use a script task?)

Many thanks

Paul

3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Those are automatically saved in the history tables.

pseymour75
Champ in-the-making
Champ in-the-making
Hi jbarrez

Thank you for the reply.

How could I retrieve these dates and have then stored as a process variable? I want to use this variable values later in my process?

Thanks in advance

Paul

jbarrez
Star Contributor
Star Contributor
You got two options:
- Fetch them through the API in a service task or script tak and store them as variables
- Use a custom execution listener that actually just puts a new Date() in a variable at the beginning/end, thus not using the historic data generated by the engine.