0
votes

I am working on an activiti based java application.

As per my process definition, when task is created or assigned or completed, activiti engine invokes a custom task listener(extending TaskLIstener). This task listener performs some logging actions in elasticsearch.

I have a usecase which needs a different handling. I have exposed a rest API which a user can invoke to change priority of a task.

What I want is that when this API is invoked, my custom task listener,mentioned above, is also invoked. I am not sure how to achieve it. I guess I first need to create a custom event which is created when API is called(events offered by activiti won't help). And then, I somwhow need to link that custom event and my custom task listener.

Any inputs are welcome.

1
Hi, if no response is given here, you can use their forums, it used to be very helpful. - ilansch

1 Answers

0
votes

The userguide provides proper steps to define and call a custom event in your process definition in the Event Handlers Section.

if you just want to set priority of a task then you should probably use taskService.setPriority(...)