jBPM version?
In jBPM5 would be smoething like:
kstateful.addEventListener(new ProcessEventListener() {
public void beforeProcessStarted(ProcessStartedEvent event) {
}
public void afterProcessStarted(ProcessStartedEvent event) {
}
public void beforeProcessCompleted(ProcessCompletedEvent event) {
}
public void afterProcessCompleted(ProcessCompletedEvent event) {
}
public void beforeNodeTriggered(ProcessNodeTriggeredEvent event) {
}
public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {
}
public void beforeNodeLeft(ProcessNodeLeftEvent event) {
}
public void afterNodeLeft(ProcessNodeLeftEvent event) {
}
public void beforeVariableChanged(ProcessVariableChangedEvent event) {
}
public void afterVariableChanged(ProcessVariableChangedEvent event) {
}
});