
package org.jeecg.modules.workFlow.flowlong.spring.event;

import org.jeecg.modules.workFlow.flowlong.engine.core.FlowCreator;
import org.jeecg.modules.workFlow.flowlong.engine.core.enums.InstanceEventType;
import org.jeecg.modules.workFlow.flowlong.engine.entity.FlwInstance;
import org.jeecg.modules.workFlow.flowlong.engine.model.NodeModel;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 流程实例事件对象
 *

 */
@Getter
@Setter
public class InstanceEvent implements Serializable {
    private InstanceEventType eventType;
    /**
     * EventType.complete 完成时，实例对象实际为子类 FlwHisInstance 对象
     * <p>
     * FlwHisInstance hisInstance = (FlwHisInstance) flwInstance;
     * </p>
     */
    private FlwInstance flwInstance;
    private NodeModel nodeModel;
    private FlowCreator flowCreator;

}
