package com.mortals.xhx.busiz.rsp;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.xhx.common.pdu.flow.FlowTaskVoPdu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 流程定义类
 *
 * @author: zxfei
 * @date: 2021/8/24 22:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FlowProcDef implements Serializable {
    /**
     * 流程定义id
     */
    private String id;
    /**
     * 流程名称
     */
    private String name;
    /**
     * 流程key
     */
    private String key;
    /**
     * 流程分类
     */
    private String category;

    /**
     * 版本
     */
    private int version;
    /**
     * 流程部署id
     */
    private String deploymentId;
    /**
     * 流程定义状态: 1:激活 , 2:中止
     */
    private int suspensionState;
    /**
     * 部署时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date deploymentTime;


    private List<FlowTaskVoPdu> flowTaskPdus;

}
