package com.bbd.bpm.constants;

/**
 * Created by yanlj on 2017/9/7.
 */
public class CodeConstant {


    /**
     * 成功
     */
    public static final String STATUS_CODE_2000 = "2000";//success

    /**
     * 工作流实例启动失败
     */
    public static final String WORKFLOW_START_ERROR = "4000";

    /**
     * 上传文件格式错误
     */
    public static final String FILE_EXT_NOT_ALLOWED = "4001";

    /**
     * 文件内容不对
     */
    public static final String FILE_CONTENT_ERROR = "4002";
    /**
     * 文件不存在
     */
    public static final String NO_FILE_UPLOADED = "4003";
    /**
     * 压缩包文件错误
     */
    public static final String ZIP_FILE_IS_WRONG = "4004";

    /**
     * 查询个人待办失败
     */
    public static final String WORKFLOW_GET_PERSONAL_TAK_ERROR = "4005";
    /**
     * 完成个人待办失败
     */
    public static final String WORKFLOW_COMPLETE_TASK_ERROR = "4006";
    /**
     * 获取流程图信息失败
     */
    public static final String WORKFLOW_TRACE_ERROR = "4007";
    /**
     * 删除流程定义失败
     */
    public static final String WORKFLOW_DELETE_DEPLOY_ERROR = "4008";
    /**
     * 签收任务失败
     */
    public static final String WORKFLOW_CLAIM_TASK_ERROR = "4009";
    /**
     * 流程部署失败
     */
    public static final String WORKFLOW_UOLOAD_ERROR = "4010";
    /**
     * 撤回错误
     */
    public static final String WORKFLOW_RECALLTASK_ERROR = "4011";

    /**
     * 流程实例删除失败
     */
    public static final String PROCESS_INSTANCE_DELETE_ERROR = "4012";
    /**
     * 显示流程定义列表失败
     */
    public static final String SHOW_DEPLOYMENT_LIST_ERROR = "4013";
    /**
     * 数据验证失败
     */
    public static final String STATUS_CODE_302 = "302";

    public static String message(String code) {
        String message = "";
        if (code.equals("2000")) {
            message = "success";
        }
        return message;
    }


}
