activiti - No activity events when using the Java API -


i'm using actviti implementation of activitieventlistener, handles events such activti_completed/task_created etc.

when communicating process instances, can see aforementioned events fired (in act_evt_log table), when via java api, no events fired (e.g. when sending message boundary event catches).

below code snippet:

public static void main(string[] args) {     readproperties();     processengine = buildprocessengine();     processengine.getruntimeservice()             .addeventlistener(new activitieventhandler("localhost", "61616"));     new messagesender(processengine).sendmessage(args); } 

what missing here?

in case come across same problem -

this misunderstanding: presumed events show in act_evt_log table, not knowing there's registered event listener popoulates it. after not seeing expected events in table thought activiti doesn't dispatch them, when in reality dispatched had no indication.

so added following line, made activiti populate act_evt_log:

runtimeservice.addeventlistener(new eventlogger(processengine.getprocessengineconfiguration().getclock())); 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -