- Chapter 1. Introduction 介绍
- Chapter 2. Getting Started
- Chapter 3. Configuration
- Creating a ProcessEngine 创建 ProcessEngine
- ProcessEngineConfiguration bean
- Database configuration 数据库配置
- JNDI Datasource Configuration 数据源配置
- Supported databases 支持的数据库
- Creating the database tables 创建数据库表
- Database table names explained 理解数据库表名字
- Database upgrade 数据库升级
- Job Executor and Async Executor (since version 5.17.0)
- Job executor activation 启用 Job executor
- Async executor activation 启用 Async executor
- Mail server configuration 配置邮件服务器
- History configuration 配置历史
- Exposing configuration beans in expressions and scripts 在表达式和脚本中暴露配置
- Deployment cache configuration 配置部署缓存
- Logging 日志
- Mapped Diagnostic Contexts 映射诊断上下文
- Event handlers 事件处理
- Chapter 4. The Activiti API
- Chapter 5. Spring integration 集成 Spring
- Chapter 6. Deployment
- Chapter 7. BPMN 2.0 Introduction
- Chapter 8. BPMN 2.0 Constructs 关于 BPMN 2.0 架构
- Chapter 9. Forms 表单
- Chapter 10. JPA
- Chapter 11. History 历史
- Chapter 12. Eclipse Designer
- Chapter 13. Activiti Explorer
- Chapter 14. Activiti Modeler
- Chapter 15. REST API
- Chapter 16. CDI integration 集成 CDI
- Chapter 17. LDAP integration 集成 LDAP
- Chapter 18. Advanced 高级
- Hooking into process parsing 监听流程解析
- UUID id generator for high concurrency 高并发的 UUID 生成器
- Multitenancy 多租户
- Execute custom SQL 执行自定义 SQL
- Advanced Process Engine configuration with a ProcessEngineConfigurator 用 ProcessEngineConfigurator 实现高级引擎配置
- Advanced query API seamless switching between runtime and historic task querying 高级查询 API-运行时无缝任务切换和历史任务查询
- Custom identity management by overriding standard SessionFactory 通过重写标准的 SessionFactory 实现自定义身份的管理
- Enable safe BPMN 2.0 xml 启用安全的 BPMN 2.0 xml
- Event logging Experimental 事件日志-实验
- Introduction 介绍
- CrystalBall inside 内部
- History analysis 历史分析
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
Business archives 业务文档
为了部署流程,它们不得不包装在一个业务文档中。一个业务文档是 Activiti 引擎部署的单元。一个业务文档相当与一个压缩文件,它包含 BPMN2.0 流程,任务表单,规则和其他任意类型的文件。 大体上,业务文档是包含命名资源的容器。
当一个业务文档被部署,它将会自动扫描以 .bpmn20.xml 或者.bpmn 作为扩展名的 BPMN 文件。每个那样的文件都将会被解析并且可能会包含多个流程定义。
注意
业务归档中的 Java 类将 不能够添加到类路径下 。为了能够让流程运行,必须把存在于业务归档程中的流程定义使用的所有自定义的类(例如:Java 服务任务或者实现事件的监听器)放在 activiti 引擎的类路径下
Deploying programmatically 编程式部署
通过一个压缩文件部署业务归档,它看起来像这样:
String barFileName = "path/to/process-one.bar";
ZipInputStream inputStream = new ZipInputStream(new FileInputStream(barFileName));
repositoryService.createDeployment()
.name("process-one.bar")
.addZipInputStream(inputStream)
.deploy();
它也可以通过一个独立资源构建部署。 详细信息请查看 javadocs。
Deploying with Activiti Explorer 通过 Activiti Explorer 控制台部署
Activiti web 控制台允许你通过 web 界面的用户接口上传一个 bar 格式的压缩文件(或者一个 bpmn20.xml 格式的文件)。 选择 Management 标签,点击 Deployment:
现在将会有一个弹出窗口允许你从电脑上面选择一个文件,或者你可以简单的拖拽到指定的区域(如果你的浏览器支持)。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论