【问题标题】:Camunda History and Audit Event Log, I can't query any history dataCamunda 历史和审计事件日志,我无法查询任何历史数据
【发布时间】:2016-02-18 06:45:18
【问题描述】:

我一直在用 MariaDB 运行 Camunda,这是一个很好的解决方案

但是我有一个问题,我看到了描述History and Audit Event Log的Camunda User Guide,所以我写了一些代码如下:

List historyList = historyService.createHistoricProcessInstanceQuery().finished().processDefinitionId("Sample1").list();

int historySize = historyList.size();

LOGGER.info("historyList size=" + historySize);

我已经完成了 Sample1 Process,但 historySize 仍然为零,我想我丢失了一些配置,我该怎么办?

Wnat 的 Runtime Database 和 Histort Database 的区别?我需要安装两个数据库吗?

谢谢

【问题讨论】:

    标签: camunda


    【解决方案1】:

    我通过使用 processDefinitionKey 解决了问题

    我把processDefinitionKey传给了processDefinitionId,难怪它不能得到一个进程的所有完成实例

    我可以使用正确的 processDefinitionId 或 processDefinitionKey 获取进程的所有已完成实例

    【讨论】:

      猜你喜欢
      • 2013-01-05
      • 2018-02-17
      • 2015-01-10
      • 1970-01-01
      • 1970-01-01
      • 2020-08-02
      • 2019-04-15
      • 2011-08-10
      • 1970-01-01
      相关资源
      最近更新 更多