- 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 历史分析
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
Expressions 表达式
Activiti 使用 UEL 处理表达式。UEL 即 Unified Expression Language (统一表达式语言),它是 EE6 规范的一部分(参考 EE6 规范 )。为了在所有运行环境都支持最新 UEL 的所有功能,我们使用了一个 JUEL 的修改版本。
表达式可以用在很多场景下,比如 Java 服务任务 , 执行监听器 , 任务监听器 和 条件流 。 虽然有两重表达式,值表达式和方法表达式,Activiti 进行了抽象,所以两者可以同样使用在需 要表达式的场景中。
- Value expression(值表达式):解析为值。默认,所有流程变量都可以使用。所有 spring bean(spring 环境中)也可以使用在表达式中。 一些实例:
${myVar} ${myBean.myProperty}
- Method expression(方法表达式):调用一个方法,使用或不使用参数。当调用一个无参数的方法时,记得在方法名后添加空的括号(以区分值表达式)。 传递的参数可以是字符串也可以是表达式,它们会被自动解析。例子:
${printer.print()} ${myBean.addNewOrder('orderName')} ${myBean.doSomething(myVar, execution)}
注意这些表达式支持解析原始类型(包括比较),bean,list,数组和 map。
在所有流程实例中,表达式中还可以使用一些默认对象:
- execution:DelegateExecution 提供外出执行的额外信息。
- task:DelegateTask 提供当前任务的额外信息。注意,只对任务监听器的表达式有效。
- authenticatedUserId:当前登录的用户 id。如果没有用户登录,这个变量就不可用。
想要更多具体的使用方式和例子,参考 spring 中的表达式 , Java 服务任务 , 执行监听器 , 任务监听器 和 条件流 。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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