Using camunda historyService in a separate project

Hi,
I have a Camunda Spring boot project containing my processes. I want to run a separate project and get the history of the processes there. I know that I can use REST APIs. But I also saw something as historyService:

ProcessEngine processEngine = ProcessEngineConfiguration
                .createProcessEngineConfigurationFromResourceDefault()
                .setHistory(ProcessEngineConfiguration.HISTORY_FULL)
                .buildProcessEngine();
var processes = historyService.createHistoricProcessInstanceQuery()
                .finished().list();

Is it possible to do such thing in a separate project?

Thanks in advance

Yes, it is perfectly possible. Just deactivate the job processing so that your history application does not do any process execution.

1 Like