package cn.ibizlab.core.extensions.service;

import cn.ibizlab.core.workflow.service.impl.WFProcessInstanceServiceImpl;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.core.workflow.domain.WFProcessInstance;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Primary;
import java.util.*;

/**
 * 实体[流程实例] 自定义服务对象
 */
@Slf4j
@Primary
@Service("WFProcessInstanceExService")
public class WFProcessInstanceExService extends WFProcessInstanceServiceImpl {


    /**
     * [Jump:流程跳转] 行为扩展
     * @param et
     * @return
     */
    @Override
    @Transactional
    public WFProcessInstance jump(WFProcessInstance et) {
        return super.jump(et);
    }
    /**
     * [Restart:重启流程] 行为扩展
     * @param et
     * @return
     */
    @Override
    @Transactional
    public WFProcessInstance restart(WFProcessInstance et) {
        return super.restart(et);
    }
}

