
org.activiti.engine.impl.history.handler.UserTaskIdHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activiti-engine Show documentation
Show all versions of activiti-engine Show documentation
workflow engine base on bboss and activiti.
The newest version!
package org.activiti.engine.impl.history.handler;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.activiti.engine.impl.context.Context;
import org.activiti.engine.impl.persistence.entity.TaskEntity;
/**
* Called when a task is created for a user-task activity. Allows recoring task-id in
* historic activity.
*
* @author Frederik Heremans
*/
public class UserTaskIdHandler implements TaskListener {
public void notify(DelegateTask task) {
Context.getCommandContext().getHistoryManager()
.recordTaskId((TaskEntity) task);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy