流程钩子

This commit is contained in:
huangweixiong 2022-04-14 19:29:38 +08:00
parent 7e0481b0ee
commit ab6ee44ac9
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
package io.renren.modules.processForm.listener;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.ExecutionListener;
import org.activiti.engine.delegate.TaskListener;
public class CorrectionListener implements TaskListener, ExecutionListener {
@Override
public void notify(DelegateTask delegateTask) {
delegateTask.setAssignee("1513432847327199233");
System.out.println("进入DelegateTask");
}
@Override
public void notify(DelegateExecution execution) throws Exception {
System.out.println("进入DelegateExecution");
}
}