
package org.jeecg.modules.workFlow.flowlong.engine.entity;

import org.jeecg.modules.workFlow.flowlong.engine.core.FlowCreator;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 流程表实体基类
 *

 */
@Getter
@Setter
public class FlowEntity implements Serializable {
    /**
     * 主键ID
     */
    protected Long id;
    /**
     * 租户ID
     */
    protected String tenantId;
    /**
     * 创建人ID
     */
    protected String createId;
    /**
     * 创建人名称
     */
    protected String createBy;
    /**
     * 创建时间
     */
    protected Date createTime;

    public void setFlowCreator(FlowCreator flowCreator) {
        this.tenantId = flowCreator.getTenantId();
        this.createId = flowCreator.getCreateId();
        this.createBy = flowCreator.getCreateBy();
    }
}
