Activiti6 应用安装 activiti-admin,activiti-app,activiti-rest

activiti6安装包中

 

1/直接将三个war包放入tomcat中,即可运行,使用H2内存数据库

2/使用mysql数据库运行

2.1/activiti-admin

# security configuration (this key should be unique for your application, and kept secret)
security.rememberme.key=activitis3cr3tk3y



# H2 example (default)

#datasource.driver=org.h2.Driver
#datasource.url=jdbc:h2:tcp://localhost/activitiadmin

# MySQL example

datasource.driver=com.mysql.jdbc.Driver
datasource.url=jdbc:mysql://127.0.0.1:3306/test-wf-admin?characterEncoding=UTF-8&useSSL=false

#datasource.driver=org.postgresql.Driver
#datasource.url=jdbc:postgresql://localhost:5432/activitiadmin

#datasource.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
#datasource.url=jdbc:sqlserver://localhost:1433;databaseName=activitiadmin

#datasource.driver=oracle.jdbc.driver.OracleDriver
#datasource.url=jdbc:oracle:thin:@localhost:1521:ACTIVITIADMIN

#datasource.driver=com.ibm.db2.jcc.DB2Driver
#datasource.url=jdbc:db2://localhost:50000/activitiadmin

datasource.username=root
datasource.password=root

# JNDI CONFIG

# If uncommented, the datasource will be looked up using the configured JNDI name.
# This will have preference over any datasource configuration done below that doesn't use JNDI
#
# Eg for JBoss: java:jboss/datasources/activitiDS
#
#datasource.jndi.name=jdbc/activitiDS

# Set whether the lookup occurs in a J2EE container, i.e. if the prefix "java:comp/env/" needs to be added if the JNDI
# name doesn't already contain it. Default is "true".
#datasource.jndi.resourceRef=true

#hibernate.dialect=org.hibernate.dialect.H2Dialect
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
#hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
#hibernate.dialect=org.hibernate.dialect.SQLServerDialect
#hibernate.dialect=org.hibernate.dialect.DB2Dialect
#hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
#hibernate.show_sql=false
#hibernate.generate_statistics=false

#
# Connection pool (see http://www.mchange.com/projects/c3p0/#configuration)
#

datasource.min-pool-size=2
datasource.max-pool-size=10
datasource.acquire-increment=2
# test query for H2, MySQL, PostgreSQL and Microsoft SQL Server
#datasource.preferred-test-query=select 1
# test query for Oracle
#datasource.preferred-test-query=SELECT 1 FROM DUAL
# test query for DB2
#datasource.preferred-test-query=SELECT current date FROM sysibm.sysdummy1
#datasource.test-connection-on-checkin=true
#datasource.test-connection-on-checkout=true
#datasource.max-idle-time=1800
#datasource.max-idle-time-excess-connections=1800

#
# Cluster settings
#

# This a period of time, expressed in milliseconds, that indicates
# when a node is deemed to be inactive and is removed from the list
# of nodes of a cluster (nor will it appear in the 'monitoring' section of the application).
#
# When a node is properly shut down, it will send out an event indicating
# it is shut down. From that point on, the data will be kept in memory for the amount
# of time indicated here.
# When a node is not properly shut down (eg hardware failure), this is the period of time
# before removal, since the time the last event is received.
#
# Make sure the value here is higher than the sending interval of the nodes, to avoid
# that nodes incorrectly removed.
#
# By default 10 minutes
cluster.monitoring.max.inactive.time=600000

# A cron expression that configures when the check for inactive nodes is made.
# When executed, this will mark any node that hasn't been active for 'cluster.monitoring.max.inactive.time'
# seconds, as an inactive node. Default: every 5 minutes.
cluster.monitoring.inactive.check.cronexpression=0 0/5 * * * ?

# REST endpoint config
rest.app.name=Activiti app
rest.app.description=Activiti app Rest config
rest.app.host=http://localhost
rest.app.port=8080
rest.app.contextroot=activiti-app
rest.app.restroot=api
rest.app.user=admin
rest.app.password=test

# Passwords for rest endpoints and master configs are stored encrypted in the database using AES/CBC/PKCS5PADDING
# It needs a 128-bit initialization vector (http://en.wikipedia.org/wiki/Initialization_vector)
# and a 128-bit secret key represented as 16 ascii characters below
#
# Do note that if these properties are changed after passwords have been saved, all existing passwords
# will not be able to be decrypted and the password would need to be reset in the UI.
security.encryption.credentialsIVSpec=j8kdO2hejA9lKmm6
security.encryption.credentialsSecretSpec=9FGl73ngxcOoJvmL

# BPMN 2.0 Modeler config

modeler.url=https://activiti.alfresco.com/activiti-app/api/

# Enable multi tenant support, disabled by default
#multi-tenant.enabled=true 

 

2.2 activiti-app

#
# SECURITY
#
security.rememberme.key=testkey

#
# DATABASE
#

#datasource.driver=org.h2.Driver
#datasource.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=-1

datasource.driver=com.mysql.jdbc.Driver
datasource.url=jdbc:mysql://127.0.0.1:3306/test-wf-app?characterEncoding=UTF-8&useSSL=false

datasource.username=root
datasource.password=root

#hibernate.dialect=org.hibernate.dialect.H2Dialect
#hibernate.dialect=org.hibernate.dialect.MySQLDialect
#hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
#hibernate.dialect=org.hibernate.dialect.SQLServerDialect
#hibernate.dialect=org.hibernate.dialect.DB2Dialect
#hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect

# 
# EMAIL
# 

#email.enabled=true
#email.host=localhost
#email.port=1025
#email.useCredentials=false
#email.username=
#email.password=

# The base url that will be used to create urls in emails.
#email.base.url=http://localhost:9999/activiti-app

#email.from.default=no-reply@activiti.alfresco.com
#email.from.default.name=Activiti
#email.feedback.default=activiti@alfresco.com
        
#
# ACTIVITI
#

activiti.process-definitions.cache.max=500

#
# DEFAULT ADMINISTRATOR ACCOUNT
#

admin.email=admin
admin.password=test
admin.lastname=Administrator

admin.group=Superusers

# The maximum file upload limit. Set to -1 to set to 'no limit'. Expressed in bytes
file.upload.max.size=104857600

# For development purposes, data folder is created inside the sources ./data folder
contentstorage.fs.rootFolder=data/
contentstorage.fs.createRoot=true
contentstorage.fs.depth=4
contentstorage.fs.blockSize=1024

 

2.3/ activit-rest

#db=h2
#jdbc.driver=org.h2.Driver
#jdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=-1
#jdbc.username=sa
#jdbc.password=

db=mysql
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/test-wf-rest?characterEncoding=UTF-8&useSSL=false
jdbc.username=root
jdbc.password=root

 

转载于:https://www.cnblogs.com/hfultrastrong/p/11286820.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
工作流 Activiti 的学习总结(六) Activiti安装详细过程 activiti-5.6 的安装 项目中采用最新的 Activiti 版本为 5.6GA 的 activiti REST 方式访问相关的 REST WebService 服务, activiti 提供了 对 mysql 、 oracle 、 postgres 的全面支持。 demo 的安装脚本比之前的版本都有 了很大的优化,基本上按教程就能顺利 demo , 真正达到了 GA 的效果了。为此我将在使用 mysql安装过程及遇到的一些小问 题总结记录了下来。但是我们项目采用 H2 数据库 ( Generic H2 Server )方式存储数据(安装成功之后在 ${activiti_home}\apps\h2 目下保存数据文件 {activiti_db}.h2.db ) 和 {activiti_db}.lobs.db. 如下是在 windows XP 环境下使用 mysql 数据库安装实录: 一)下载 activiti-5.6.zip 二)将 activiti-5.6zip 解压到指定目录,假设为“C: \mash_activiti- 5.6”, 注意下面提到的路径均是相对于该路径而言 三)检查数据库类型 打开文件“setup \ build.properties”修改 db=h2 (采用默认为 h2 )。 四)配置 H2 数据库 创建名称为 activiti 的空数据库,连接帐号设为 sa ,密码也设为 activiti 。 ( 如果不喜欢默认的连接配置,可以修改文件“setup \ build.h2.properties”中 相应的属性值) 五)预下载一些必需的文件到“C: \ downloads”(备注这一步可以不执行,非必 须的,在网络比较好的情况下,使用 ant 自动下载 ) “C: \ downloads”这个路径是在 build.properties 中通过属性 “downloads.dir”定义的,也可以手动修改指定其他位置。 如果确保网络环境很顺畅, 这一步也可以不做, 安装脚本会自动下载, 由于之前 的版本我安装时经常下载中断, 导致文件损坏、 安装异常, 所以我习惯了先预先 下载,保证安装顺畅点。主要下载如下 2 个文件,左侧为下载地址,右侧为下载 后保存的文件名: 1 ) http://mirrors.enquira.co.uk/apache/apache-tomcat-6.0.32.zip (http://activiti.org/downloads/apache-tomcat-6.0.32.zip) --> apache-tomcat-6.0.32.zip ( 2.71MB ) 2 ) http://activiti.org/downloads/activiti-modeler-5.6.war --> activiti-modeler-5.6.war ( 31.8MB ) 六)修改浏览器的可执行文件路径(非必须) 打开文件“setup \ build.xml”修改属性 windows.browser 的值为浏览器的启动 文件对应的位置。如我一直使用 chrome ,配置如下: <property name="windows.browser" value="C:/Documents and Settings/dragon/Local Settings/Application Data/Google/Chrome/Application/chrome.exe" /> 修改这个的目的是方便下面的 "ant demo.start" 结束后自动打开浏览器访问相 关演示模块的首页。 七)检查一下你的电脑是否已经使用了 tomcat 服务 如果使用了 tomcat 服务, 得停掉, 否测会冲突。 顺便检查一下 8080 端口有没有 被占用,否测也会冲突导致安装失败。 八)安装 apache-ant-1.8.2 和 jdk1.5+ 环境 主要是设置环境变量 ANT_HOME 和 JAVA_HOME ,并 将 %ANT_HOME%\bin 、 %JAVA_HOME%\bin 设置到 path 环境变量中。 九)一切就绪后就可以开始体验了 命令行切换到“setup/",运行 "ant demo.start" ,等待整个安装过程自动完成 吧,安装完毕后默认会自动打开浏览器 十)测试是否安装成功 http://localhost:8080/activiti-probe 采用默认 admin 用户登录: 登录名称: kermit 登录密码: kermit 十一) activiti 手工启动方式如下: activiti 默认下载的 tomcat 和 h2 的安装目录为 ${activiti_home}/apps 目录如 (C:\mash_activiti-5.6\apps) 下面。 启动的 activit 服务需要 1. 先启动 H2 数据库控制台 ( C:\mash_activiti-5.6\apps\h2\h2_console.start.bat ,控制台 web 访问开 放端口为 8082 ) 2. 再启动 H2 数据库访问服务 ( C:\mash_activiti-5.6\apps\h2\h2.start.bat , H2 程序访问开放端口为 9092 ) 我在安装使用过程中遇到如下一些问题: tomcat 控制台显示的中文乱码 解决办法:修改文件 apps\apache-tomcat-6.0.32\conf\logging.properties , 增加如下一行的配置: java.util.logging.ConsoleHandler.encoding = GBK
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值