AnsweredAssumed Answered

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

Question asked by rafaelduqueestrada on May 25, 2015
Latest reply on May 26, 2015 by martin.grofcik
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.