• activiti笔记四 关于部署信息表act_re_deployment


    一、简要描述
        部署流程定义时需要被持久化保存下来的信息。
    二、表结构说明

    字段名称

    字段描述

    数据类型

    主键

    为空

    取值说明

    ID_

    ID_

    nvarchar(64)

    主键ID

    NAME_

    部署名称

    nvarchar(255)

    部署文件名

    CATEGORY_

    分类

    nvarchar(255)

    类别

    DEPLOY_TIME_

    部署时间

    datetime

    部署时间

    三、表中NAME_字段说明:

         1,如果流程定义文件在程序中启动,表中的NAME_字段为NULL;

         2,如果流程定义文件在spring的配置文件中(activiti.cfg.xml),表中的NAME_字段为SpringAutoDeployment,例如:     

        <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
            <property name="dataSource" ref="dataSource" />
            <property name="transactionManager" ref="transactionManager" />
            <property name="databaseSchemaUpdate" value="true" />
            <property name="jobExecutorActivate" value="false" />
            <property name="mailServerHost" value="mail.my-corp.com" />
            <property name="mailServerPort" value="5025" />
            <property name="eventListeners">
                <list>
                    <bean class="com.cnfwsy.app.day01.MyEventListener" />
                </list>
            </property>
             <property name="deploymentResources" value="classpath*:com/cnfwsy/app/day09/物流ERP.bpmn" />
        </bean>

          3,两种起部署方式,表记录的数据也不一样:代码方式部署多次,act_re_deployment表就有多条记录;配置在activiti.cfg.xml文件中的部署方式,act_re_deployment表中只有一条记录。

  • 相关阅读:
    【LeetCode】Validate Binary Search Tree
    【LeetCode】Search in Rotated Sorted Array II(转)
    【LeetCode】Search in Rotated Sorted Array
    【LeetCode】Set Matrix Zeroes
    【LeetCode】Sqrt(x) (转载)
    【LeetCode】Integer to Roman
    贪心算法
    【LeetCode】Best Time to Buy and Sell Stock III
    【LeetCode】Best Time to Buy and Sell Stock II
    CentOS 6 上安装 pip、setuptools
  • 原文地址:https://www.cnblogs.com/firebata/p/5033527.html
Copyright © 2020-2023  润新知