cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 5.3 flow stops in a Email Task

jcosano
Champ in-the-making
Champ in-the-making
I migrated from 5.1 to 5.3 and now my process stops in Email tasks.

Email is sended but the flow doesn't continues to the next user task.

act_ru_execution.act_id_ reference to email task node.

FINA: ProcessInstance[810] takes transition (diagnoseUser)–flowdiagnoseUser2–>(mailWorkOrder)
02-mar-2011 17:27:36 org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute execute
FINA: ProcessInstance[810] executes Activity(mailWorkOrder): org.activiti.engine.impl.bpmn.behavior.MailActivityBehavior
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA: flush summary:
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA:   insert VariableInstanceEntity[918]
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA:   insert HistoricActivityInstanceEntity[919]
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA:   update HistoricActivityInstanceEntity[916]
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA:   update ExecutionEntity[810]
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA:   update HistoricTaskInstanceEntity[917]
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA:   delete TaskEntity[917]
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flush
FINA: now executing flush…
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flushInserts
FINA: inserting: VariableInstanceEntity[918]
02-mar-2011 17:27:36 org.activiti.engine.impl.db.DbSqlSession flushInserts
FINA: inserting: HistoricActivityInstanceEntity[919]
02-mar-2011 17:27:37 org.activiti.engine.impl.db.DbSqlSession flushUpdates
FINA: updating: HistoricActivityInstanceEntity[916]]
02-mar-2011 17:27:37 org.activiti.engine.impl.db.DbSqlSession flushUpdates
FINA: updating: ExecutionEntity[810]]
02-mar-2011 17:27:37 org.activiti.engine.impl.db.DbSqlSession flushUpdates
FINA: updating: HistoricTaskInstanceEntity[917]]
02-mar-2011 17:27:37 org.activiti.engine.impl.db.DbSqlSession flushDeletes
FINA: executing: delete TaskEntity[917]
02-mar-2011 17:27:37 org.activiti.engine.impl.db.DbSqlSession$DeleteById execute
FINA: deleting: TaskEntity[917]
02-mar-2011 17:27:37 org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext commit
FINA: firing event committing…
02-mar-2011 17:27:37 org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext commit
FINA: committing the ibatis sql session…
02-mar-2011 17:27:37 org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext commit
FINA: firing event committed…
02-mar-2011 17:27:37 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA: — CompleteTaskCmd finished ——————————————————–
02-mar-2011 17:27:37 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA:                                                                                                    
02-mar-2011 17:27:37 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA:                                                                                                    
02-mar-2011 17:27:37 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA: — starting CheckPassword ——————————————————–
02-mar-2011 17:27:37 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA:                                                                                                    
02-mar-2011 17:27:37 org.activiti.engine.impl.interceptor.LogInterceptor execute
FINA: — starting CheckPassword ——————————————————–
02-mar-2011 17:27:37 org.activiti.engine.impl.db.DbSqlSession flush
FINA: flush summary:
02-mar-2011 17:27:37 org.activiti.engine.impl.db.DbSqlSession flush
FINA: now executing flush…
02-mar-2011 17:27:37 org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext commit
FINA: firing event committing…
02-mar-2011 17:27:37 org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext commit
FINA: committing the ibatis sql session…
02-mar-2011 17:27:37 org.activiti.engine.impl.cfg.standalone.StandaloneMybatisTransactionContext commit
FINA: firing event committed…
02-mar-2011 17:27:37 org.activiti.engine.impl.interceptor.LogInterceptor execute


I test with all my real process, and all stops in a node…    activiti:type="mail"

Any notice about this?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Damn, looks like I've introduced a bug while refactoring. Also none of the mail tests actually tested that the mail activity is left. Shame on me Smiley Sad

I've fixed it on trunk. As a current workaround, you could do something like this, and call your this class in the servicetask instead of activiti:type="mail"

public class PatchedMailBehavior extends MailActivityBehavior {

   protected BpmnActivityBehavior bpmnActivityBehavior = new BpmnActivityBehavior();

   public void execute(ActivityExecution execution) throws Exception {
    super.execute(execution);
    leave(execution);
  }

}

jcosano
Champ in-the-making
Champ in-the-making
I prefer modify MailActivityBehavior, and generate my own engine.jar,

I should hack this class adding:

      email.setCharset("ISO-8859-15");


Thank you for your quickly answer…

Really I have a problem with mails in each version…  :lol:  :lol:  :lol:  :lol:

jbarrez
Star Contributor
Star Contributor
Hahahaha 🙂 But I'm ghappy that you around to find these bugs so quickly.

but this is really a shameful bug, the tests should have caught this (now they do ;-))