activiti engine.schema.update DB_SCHEMA_UPDATE_FALSE

Posted rgqancy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了activiti engine.schema.update DB_SCHEMA_UPDATE_FALSE相关的知识,希望对你有一定的参考价值。

engine.properties

# engine properties
engine.schema.update=true
engine.activate.jobexecutor=false
engine.asyncexecutor.enabled=true
engine.asyncexecutor.activate=true
engine.history.level=full

ProcessEngineConfiguration.createStandaloneInMemProcessEngineConfiguration() .setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_FALSE)

DB_SCHEMA_UPDATE_FALSE

http://www.cnblogs.com/mingforyou/p/5347789.html

package junit;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.junit.Test;

public class TestActiviti {
    /**
     * 使用代码创建工作流需要的23张表
     */
    @Test
    public void createTable(){
        ProcessEngineConfiguration processEngineConfiguration = ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();
        //连接数据库配置
        processEngineConfiguration.setJdbcDriver("com.mysql.jdbc.Driver");
        processEngineConfiguration.setJdbcUrl("jdbc:mysql://localhost:3306/activiti?useUnicode=true&characterEncoding=utf8");
        processEngineConfiguration.setJdbcUsername("root");
        processEngineConfiguration.setJdbcPassword("******");
        
        /**
          public static final String DB_SCHEMA_UPDATE_FALSE = "false";//不能自动创建表,需要表存在
          public static final String DB_SCHEMA_UPDATE_CREATE_DROP = "create-drop";//先删除表再创建表
          public static final String DB_SCHEMA_UPDATE_TRUE = "true";//如果表不存在,自动创建表
          */
        processEngineConfiguration.setDatabaseSchemaUpdate(ProcessEngineConfiguration.DB_SCHEMA_UPDATE_TRUE);
        //工作流的核心对象,ProcessEngine对象
        ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();
        System.out.println("processEngine:"+ processEngine);
    }
}

 

以上是关于activiti engine.schema.update DB_SCHEMA_UPDATE_FALSE的主要内容,如果未能解决你的问题,请参考以下文章

什么是Activity,详细介绍Activity

Android Activity生命周期解析

activity的启动流程(三)

android 监听每个activity的状态

Android之Activity系列总结--Activity概览

android中怎么kill掉一个activity?