AnsweredAssumed Answered

How to close task within create task listener

Question asked by penusila611621 on Apr 9, 2014
Latest reply on Apr 22, 2014 by jbarrez
I have a requirement to implement skip OR execute human activities in process flow. I have configured a task listener on create task event.
Should I am able to close this task with in lsitener itself using task object.

Basically  I am expecting features as below.

public class CommonTaskListener implements TaskListener{   
   private static final long serialVersionUID = 1L;
   
   @Override
   public void notify(DelegateTask task) {
   
                   if(based on some condition) tasl.close()///Is there any method like this.
                   else { run other business logic}   
       
   }
}

Anybody let me know if is there any feature avaiable to implement one of the critical business requirement.

Outcomes