package com.tykj.workflowcore.workflow_editer.listener;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;
import org.springframework.stereotype.Component;

/**
 * ClassName:    AssigneeListener
 * Package:    com.tykj.listener
 * Description:
 * Datetime:    2021/2/23   16:02
 *
 * @Author: zsp
 */
@Component
public class AssigneeListener implements TaskListener{
    @Override
    public void notify(DelegateTask delegateTask) {
        //指定流程的发起人
        //获取当前登录到用户
        String userId = "";
        delegateTask.setAssignee(userId);
    }

}
