package cn.axzo.workflow.core.deletage;

import cn.axzo.workflow.common.enums.ApproverSpecifyEnum;
import cn.axzo.workflow.common.model.request.bpmn.task.BpmnTaskDelegateAssigner;
import cn.axzo.workflow.core.common.exception.WorkflowEngineException;
import org.flowable.bpmn.model.UserTask;
import org.flowable.engine.delegate.DelegateExecution;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * todo 本期需求不实现
 * 基于"发起人多级主管"查询审批人
 *
 * @author wangli
 * @since 2023/11/16 11:42
 */
@Component
public class InitiatorLeaderRecursionTaskAssigneeSelector extends AbstractBpmnTaskAssigneeSelector {
    @Override
    public boolean support(String param) {
        return ApproverSpecifyEnum.initiatorLeaderRecursion.getType().equals(param);
    }

    @Override
    public List<BpmnTaskDelegateAssigner> select(UserTask userTask, DelegateExecution execution) {
        throw new WorkflowEngineException("暂不支持");
    }

}
