JBoss Community

Re: event listeners

created by Esteban Aliverti in jBPM - View the full discussion

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) {
            }
        });
 

Reply to this message by going to Community

Start a new discussion in jBPM at Community