Hi,
I am using Activiti 5.21 in my spring boot application and want to check the history of the process variables that are updated in the journey at any point. The histories are maintained in ACT_HI_DETAIL table of activiti but in my case, there are no entries at all in this table. The remaining tables have entries as expected.
I also referred to the activiti user guide where it says the historyLevel should be configured as full for the highest level of history archiving.
In my project, I have set the history level(spring.activiti.historyLevel= full) in application.properties file but still there are no entries in ACT_HI_DETAIL even after the completion of a journey.
The User Guide also shows two different ways to set the history level.
1.) can be configured programmatically with this code:
</code></pre><table style="background: none; border: 0px;"><tbody><tr><td class="" style="color: #6d6e71; font-size: inherit; padding: 0px 0px 0px 0.75em;"><span class="">ProcessEngine</span> <span class="">processEngine</span> <span class="" style="color: #666666;">=</span> <span class="">ProcessEngineConfiguration</span> <span class="" style="color: #666666;">.</span><span class="" style="color: #7d9029;">createProcessEngineConfigurationFromResourceDefault</span><span class="" style="color: #666666;">()</span> <span class="" style="color: #666666;">.</span><span class="" style="color: #7d9029;">setHistory</span><span class="" style="color: #666666;">(</span><span class="">HistoryLevel</span><span class="" style="color: #666666;">.</span><span class="" style="color: #7d9029;">AUDIT</span><span class="" style="color: #666666;">.</span><span class="" style="color: #7d9029;">getKey</span><span class="" style="color: #666666;">())</span> <span class="" style="color: #666666;">.</span><span class="" style="color: #7d9029;">buildProcessEngine</span><span class="" style="color: #666666;">();</span></td></tr></tbody></table></div></div><p>but where do I put this code in my project?</p><p></p><p>2.) can be <span style="color: #222222; background-color: #ffffff; font-size: 16px;">configured in <strong>activiti.cfg.xml</strong> or in a spring-context:</span></p><pre class="" style="color: black; background: #f8f8f8; border: 1px dashed #666666; padding: 1.25em 1.5625em 1.125em;"><code>
1 2 3 4 | <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration"> <property name="history" value="audit" /> ...</bean> |
but I couldn't find activiti.cfg.xml in my project.
How do I get the variables to be stored in ACT_HI_DETAIL table? need help
Thanks