Class AsyncHistorySessionCommandContextCloseListener

java.lang.Object
org.flowable.job.service.impl.history.async.AsyncHistorySessionCommandContextCloseListener
All Implemented Interfaces:
CommandContextCloseListener

public class AsyncHistorySessionCommandContextCloseListener extends Object implements CommandContextCloseListener
A listener for command context lifecycle close events that generates JSON (using Jackson) and corresponding HistoryJobEntity when the CommandContext closes and adds them to the list of entities that will be inserted to the database. The reason why this is done at the very end, is because that way the historical data can be optimized (some events cancel others, can be grouped, etc.)
Author:
Joram Barrez