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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -