简体   繁体   English

Camunda历史记录和审核事件日志,我无法查询任何历史记录数据

[英]Camunda History and Audit Event Log, I can't query any history data

I have been running Camunda with MariaDB, it's a good solution 我一直在使用MariaDB运行Camunda,这是一个很好的解决方案

but I have a problem, I saw the Camunda User Guide that describes History and Audit Event Log, so I write some codes as follows: 但是我有一个问题,我看到了《 Camunda用户指南》,其中描述了历史记录和审核事件日志,因此我编写了一些代码,如下所示:

List historyList = historyService.createHistoricProcessInstanceQuery().finished().processDefinitionId("Sample1").list(); 列表historyList = historyService.createHistoricProcessInstanceQuery()。finished()。processDefinitionId(“ Sample1”)。list();

int historySize = historyList.size(); int historySize = historyList.size();

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

I have finished the Sample1 Process, but the historySize still is zero, I think I lost some configuration, how can I do? 我已经完成了Sample1流程,但是historySize仍然为零,我认为我丢失了一些配置,该怎么办?

Wnat's difference between Runtime Database and Histort Database? 运行时数据库和Histort数据库之间的区别? do I need to install two Databases? 我需要安装两个数据库吗?

Thank you 谢谢

I solved the Problem by using processDefinitionKey 我通过使用processDefinitionKey解决了问题

I passed processDefinitionKey to processDefinitionId, no wonder it can't get all finished instances of a process 我将processDefinitionKey传递给processDefinitionId,难怪它无法获取流程的所有完成实例

I can get all finished instances of a process using correct processDefinitionId or processDefinitionKey 我可以使用正确的processDefinitionId或processDefinitionKey获取流程的所有完成实例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM