package cn.iocoder.yudao.module.bpm.service.task.listener;

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

/**
 * @author mark
 * @description 数据归档
 * @date 2026-04-02
 */
@Component("dataSaveTask")
@Slf4j
public class DataSaveTask implements JavaDelegate {
    private static final Logger log = LoggerFactory.getLogger(DataSaveTask.class);


    @Override
    public void execute(DelegateExecution execution) {
        log.info("数据归档:{}", execution.getVariable("amount"));
    }
}
