Ok, now I am able to extend the HistorySession and I can intercept ProcessInstanceCreate (or whatever..).
Does anyone knows how can I access to the object tied to the event in the HistorySession?
i.e. Here I would like to log the process instance id...
public class TestHistSession implements HistorySession {
public void process(final HistoryEvent historyEvent) {
if (historyEvent instanceof ProcessInstanceCreate) {
final ProcessInstanceCreate p = (ProcessInstanceCreate) historyEvent;
// TODO what can I do here???
}
}
}
thank you
Marco