cancel
Showing results for 
Search instead for 
Did you mean: 

Task listener x Service Task: when do i use each of them?

rafaelduqueestr
Champ in-the-making
Champ in-the-making
Hi,
I don't know if it's a very basic doubt, but when should i use task listener and service task? I can use expressions in both (execute a java code for example), but if i use in service task the design of my process show it, different if i use task listeners (Is there another difference?)
For example:

I have a user task: "handle dog", when i complete this task i need to do two business validation rules and an update in database table.
I don't know what is the best:
1- Create a service task after a user task is completed or;
2- Put this execution inside the user task using task listener with complete attribute.

Anyone could help me?

PS: I don't want drools (not now) for validations.

Thnks
1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

there are differences in the execution, but they are not important from your point of view.
My decision would be based on the process model readability.

Regards
Martin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.