O'Reilly logo

Activiti 5.x Business Process Management Beginner's Guide by Irshad Mansuri, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – querying historical activities

Using HistoryService, we can get historical data such as names of the finished process instances and when a process started and was completed.

We will follow the ensuing steps to fetch some historical data from the database for a specific task:

  1. We will create a new Activiti project within the Eclipse IDE.
  2. Within the Activiti project, create a class file HistoricData.
  3. Write the following code in HistoricData:
    package com.activiti; import java.security.Identity; import java.util.HashMap; import java.util.List; import java.util.Map; import org.activiti.engine.HistoryService; import org.activiti.engine.IdentityService; import org.activiti.engine.ProcessEngine; import org.activiti.engine.ProcessEngineConfiguration; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required