Using Process Application Event Listener Plugin

414 views
Skip to first unread message

ofen...@googlemail.com

unread,
Nov 19, 2015, 9:57:23 AM11/19/15
to camunda BPM users
Hi,

i want to use the Process Application Event Listener Plugin, because i will react on userTask events without changing the bpmn file with DelegateCode. I saw that plugin in camunda docs.

https://docs.camunda.org/manual/7.3/guides/user-guide/#process-applications-process-application-event-listeners

is it posible to use that plugin with Groovy Camunda Plugin? It is only possible to configure the process Engine in Spring

Thanks for reply.

Cheers
Uwe

Ingo Richtsmeier

unread,
Nov 19, 2015, 10:19:37 AM11/19/15
to camunda BPM users, ofen...@googlemail.com
Hi Uwe, 

you can configure more than one process engine plugin. In the distro you find the spin- and the connector-plugin configured.

Kind Regards,

Ingo

ofen...@googlemail.com

unread,
Nov 19, 2015, 10:42:53 AM11/19/15
to camunda BPM users, ofen...@googlemail.com
My problem is for using that Listener Plugin i have to configure in XML notation:
<process-engine name="default">
...
<plugins>
<plugin>
<class>org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerPlugin</class>
</plugin>
</plugins>
</process-engine>

But i only have in Grails Config.groovy for Engine Configurations:

production{
//Camunda Workflow Configuration
camunda {
engine {
configuration {
deploymentResources = ['']
}
}
}
}

Jan Galinski

unread,
Nov 20, 2015, 2:47:30 PM11/20/15
to camunda BPM users, ofen...@googlemail.com
I recently build a generic eventing mechanism as an engine plugin: https://github.com/jangalinski/camunda-bpm-reactor
I proposed to accept this as a community extension, but its still pending.

The plugin registers execution and tasklisteners for all possible events on all possible elements and notifies an eventbus (from projectreactor.io). You can then choose to listen to all events or filter by type, eventType, process and activity . This example registers a listener to all task-create events:

@CamundaSelector(type = "userTask", event = TaskListener.EVENTNAME_CREATE)
public class TaskCreateListener extends SubscriberTaskListener {
 
  public TaskCreateListener(EventBus eventBus) {
    register(eventBus);
  }

  @Override
  public void notify(DelegateTask delegateTask) {
...
  }
}

If this is something you are interested in, please give it a try, I am interested in feedback.
Reply all
Reply to author
Forward
0 new messages