package com.srs.flowable.listener.disqualification;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

/**
 * 设置学生审批
 */
@Component
@Slf4j
public class StuApprovalListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution delegateExecution) {
        Long stuId = (Long)delegateExecution.getVariable("stuUserId");

        log.info("学生信息：{}",stuId);
        delegateExecution.setVariable("approval",stuId);
        // todo 企业微信推送消息

    }
}
