Marco Baroetto [
http://community.jboss.org/people/H4rLoCk] replied to the discussion
"Extending jBPM 4 history service"
To view the discussion, visit:
http://community.jboss.org/message/558560#558560
--------------------------------------------------------------
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
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/558560#558560]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]