189 8069 5689

01-初始化Activiti数据库

package cn.itcast.activiti.db;

import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.ProcessEngines;

public class CreateDb {
	
	public static void main(String[] args)
	{
		//数据库配置文件
		String resource="activiti.cfg.xml";
		
		//创建数据库对象
		ProcessEngineConfiguration processEngineConfiguration=ProcessEngineConfiguration
				.createProcessEngineConfigurationFromResource(resource);
		
		//开始创建数据库
		ProcessEngine processEngine= processEngineConfiguration.buildProcessEngine();
		
		System.out.println(processEngine);
		
	}
}

文章名称:01-初始化Activiti数据库
转载源于:http://cdxtjz.com/article/pidehh.html

其他资讯