package cn.palmte.work.config.activiti;

public class ActConstant {

    /**
     * 流程启动用户变量
     */
    public static final String START_PROCESS_USERID = "startUserId";


    public static final String PROC_INS_ID = "procInsId";
    public static final String PROC_DEF_KEY = "procDefKey";


    /**
     * 结束节点
     */
    public static final int TASK_INDEX_END = -1;


    /**
     * 0-未知或者其他节点
     */
    public static final int TASK_INDEX_OTHER = 0;

    /**
     * 开始节点
     */
    public static final int TASK_INDEX_START = 1;

    /**
     * 发起审批节点
     */
    public static final int TASK_INDEX_FIRST_USER_TASK = 2;


    /**
     * 单实例 或签
     */
    public static final int TASK_TYPE_SINGE = 0;
    /**
     * 多实例 会签
     */
    public static final int TASK_TYPE_MULTI = 1;


    /**
     * 会签任务总数
     */
    public static final String NUMBER_OF_INSTANCES = "nrOfInstances";

    /**
     * 活动的会签任务数
     */
    public static final String NUMBER_OF_ACTIVE_INSTANCES = "nrOfActiveInstances";

    /**
     * 完成会签任务数
     */
    public static final String NUMBER_OF_COMPLETED_INSTANCES = "nrOfCompletedInstances";


    /**
     * 概算
     */
    public static final String PROCESS_DEFKEY_ESTIMATE = "estimate";

    public static final String PROCESS_TASKS_ESTIMATE = "填报概算#工程管理部#产品系统集成部#财务人员#财务总监#总经理#执行董事";
    public static final String PROCESS_TASKS_BUDGET = "填报预算#工程管理部#产品系统集成部#财务人员#财务总监#总经理#执行董事";
    public static final String PROCESS_TASKS_SETTLE = "填报结算#财务总监";
    public static final String PROCESS_TASKS_FINAL = "填报决算#工程管理部#产品系统集成部#财务人员#财务总监#总经理#执行董事";

    /**
     * 预算
     */
    public static final String PROCESS_DEFKEY_BUDGET = "budget";
    /**
     * 结算
     */
    public static final String PROCESS_DEFKEY_SETTLE = "settle";
    /**
     * 决算
     */
    public static final String PROCESS_DEFKEY_FINAL = "final";

    public static final String KEY_PROJECT_ID = "projectId";
    public static final String KEY_PROJECT_TYPE = "projectType";

    public static final String PROCESS_DEFKEY_SALE_CONTRACT = "saleContract";
    public static final String PROCESS_DEFKEY_BUSINESS_PURCHASE = "businessPurchase";


    //发起人部门主管
    public static final int CANDIDATE_TYPE_START_USER_LEADER = 1;


    //四算项目
    public static final int PROJECT_TYPE_FOURCAL = 0;
    //销售合同
    public static final int PROJECT_TYPE_SALE_CONTRACT = 1;
    //业务采购
    public static final int PROJECT_TYPE_BUSINESS_PURCHASE = 2;
}
