<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Activiti 5.14 用户手册</title><link href="Activiti%205.14%20%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C_files/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="Activiti%205.14%20%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C_files/prettify.js"></script><meta content="DocBook XSL Stylesheets V1.75.2" name="generator"></head><body onload="prettyPrint()" alink="#0000FF" bgcolor="white" link="#0000FF" text="black" vlink="#840084"><div class="book" title="Activiti 5.14 用户手册"><div class="titlepage"><div><div><h1 class="title"><a name="N10001"></a>Activiti 5.14 用户手册</h1></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="#N10007">1. 简介</a></span></dt><dd><dl><dt><span class="section"><a href="#license">协议</a></span></dt><dt><span class="section"><a href="#download">下载</a></span></dt><dt><span class="section"><a href="#sources">源码</a></span></dt><dt><span class="section"><a href="#required.software">必要的软件</a></span></dt><dd><dl><dt><span class="section"><a href="#N1002A">JDK 6+</a></span></dt><dt><span class="section"><a href="#N10036">Eclipse Indigo 和 Juno</a></span></dt></dl></dd><dt><span class="section"><a href="#reporting.problems">报告问题</a></span></dt><dt><span class="section"><a href="#experimental">试验性功能</a></span></dt><dt><span class="section"><a href="#internal">内部实现类</a></span></dt></dl></dd><dt><span class="chapter"><a href="#N1007D">2. 开始学习</a></span></dt><dd><dl><dt><span class="section"><a href="#demo.setup.one.minute.version">一分钟入门</a></span></dt><dt><span class="section"><a href="#activiti.setup">安装Activiti</a></span></dt><dt><span class="section"><a href="#activiti.setup.database">安装Activiti数据库</a></span></dt><dt><span class="section"><a href="#getting.started.including.libs">引入Activiti jar和依赖</a></span></dt><dt><span class="section"><a href="#getting.started.next.steps">下一步</a></span></dt></dl></dd><dt><span class="chapter"><a href="#N10156">3. 配置</a></span></dt><dd><dl><dt><span class="section"><a href="#configuration">创建ProcessEngine</a></span></dt><dt><span class="section"><a href="#configurationRoot">ProcessEngineConfiguration bean</a></span></dt><dt><span class="section"><a href="#databaseConfiguration">数据库配置</a></span></dt><dt><span class="section"><a href="#supporteddatabases">支持的数据库</a></span></dt><dt><span class="section"><a href="#creatingDatabaseTable">创建数据库表</a></span></dt><dt><span class="section"><a href="#database.tables.explained">理解数据库表的命名</a></span></dt><dt><span class="section"><a href="#databaseUpgrade">数据库升级</a></span></dt><dt><span class="section"><a href="#jobExecutorConfiguration">启用Job执行器</a></span></dt><dt><span class="section"><a href="#mailServerConfiguration">配置邮件服务器</a></span></dt><dt><span class="section"><a href="#historyConfiguration">配置历史</a></span></dt><dt><span class="section"><a href="#exposingConfigurationBeans">为表达式和脚本暴露配置</a></span></dt><dt><span class="section"><a href="#processDefinitionCacheConfiguration">配置部署缓存</a></span></dt><dt><span class="section"><a href="#loggingConfiguration">日志</a></span></dt><dt><span class="section"><a href="#MDC">映射诊断上下文</a></span></dt></dl></dd><dt><span class="chapter"><a href="#chapterApi">4. Activiti API</a></span></dt><dd><dl><dt><span class="section"><a href="#apiEngine">流程引擎的API和服务</a></span></dt><dt><span class="section"><a href="#N1049A">异常策略</a></span></dt><dt><span class="section"><a href="#api.services">使用Activiti的服务</a></span></dt><dd><dl><dt><span class="section"><a href="#api.services.deployment">发布流程</a></span></dt><dt><span class="section"><a href="#api.services.start.processinstance">启动一个流程实例</a></span></dt><dt><span class="section"><a href="#api.services.tasls">完成任务</a></span></dt><dt><span class="section"><a href="#api.services.suspend">挂起,激活一个流程</a></span></dt><dt><span class="section"><a href="#api.services">更多知识</a></span></dt></dl></dd><dt><span class="section"><a href="#queryAPI">查询API</a></span></dt><dt><span class="section"><a href="#apiExpressions">表达式</a></span></dt><dt><span class="section"><a href="#apiUnitTesting">单元测试</a></span></dt><dt><span class="section"><a href="#apiDebuggingUnitTest">调试单元测试</a></span></dt><dt><span class="section"><a href="#apiProcessEngineInWebApp">web应用中的流程引擎</a></span></dt></dl></dd><dt><span class="chapter"><a href="#springintegration">5. Spring集成</a></span></dt><dd><dl><dt><span class="section"><a href="#N10694">ProcessEngineFactoryBean</a></span></dt><dt><span class="section"><a href="#N106AC">事务</a></span></dt><dt><span class="section"><a href="#springExpressions">表达式</a></span></dt><dt><span class="section"><a href="#N1070A">资源的自动部署</a></span></dt><dt><span class="section"><a href="#springUnitTest">单元测试</a></span></dt></dl></dd><dt><span class="chapter"><a href="#chDeployment">6. 部署</a></span></dt><dd><dl><dt><span class="section"><a href="#N1072E">业务文档</a></span></dt><dd><dl><dt><span class="section"><a href="#N10742">编程式部署</a></span></dt><dt><span class="section"><a href="#deploymentWithExplorer">通过Activiti Explorer控制台部署</a></span></dt></dl></dd><dt><span class="section"><a href="#N10766">外部资源</a></span></dt><dd><dl><dt><span class="section"><a href="#N1076B">Java类</a></span></dt><dt><span class="section"><a href="#N10777">在流程中使用Spring beans</a></span></dt><dt><span class="section"><a href="#N10789">创建独立应用</a></span></dt></dl></dd><dt><span class="section"><a href="#versioningOfProcessDefinitions">流程定义的版本</a></span></dt><dt><span class="section"><a href="#providingProcessDiagram">提供流程图片</a></span></dt><dt><span class="section"><a href="#generatingProcessDiagram">自动生成流程图片</a></span></dt><dt><span class="section"><a href="#deploymentCategory">类别</a></span></dt></dl></dd><dt><span class="chapter"><a href="#bpmn20">7. BPMN 2.0介绍</a></span></dt><dd><dl><dt><span class="section"><a href="#whatIsBpmn">啥是BPMN?</a></span></dt><dt><span class="section"><a