package com.fs.audit.event;

import com.fs.audit.domain.Audit;
import com.fs.audit.domain.AuditFlow;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 审核步骤变更事件
 */
@Getter
public class AuditStepChangedEvent extends ApplicationEvent {

    /**
     * 审核实例
     */
    private final Audit audit;

    /**
     * 新的流程步骤
     */
    private final AuditFlow newFlow;

    public AuditStepChangedEvent(Object source, Audit audit, AuditFlow newFlow) {
        super(source);
        this.audit = audit;
        this.newFlow = newFlow;
    }
}

