JBoss Community

Extending jBPM 4 history service

reply from Marco Baroetto in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community