Add custom listners to ProcessEngine


#1

I’m looking for documentation or assistance trying to add a custom event listeners behavior to the process engine.

I have created a processEngine instance as follow:

val processEngine = ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration()
.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_FALSE)
.setJdbcUrl(“jdbc:h2:mem:my-own-db;DB_CLOSE_DELAY=1000”)
.setJobExecutorActivate(“true”)
.buildProcessEngine();

How can i add eventListeners to processEngine…
(In activiti ,i use to do like : processEngine.getRuntimeService.addEventListener(myEventListener))

Thanks in advance.
Sagari


#2

Hi Sagari,

Have look at Event listener docs.

Best regards,
Yana