Flowable 6.6.0 事件注册表用户指南

编程入门 行业动态 更新时间:2024-10-11 05:28:44

Flowable 6.6.0 事件<a href=https://www.elefans.com/category/jswz/34/1771218.html style=注册表用户指南"/>

Flowable 6.6.0 事件注册表用户指南

Flowable 6.6.0 用户指南相关文档下载

  • BPMN用户指南 第一部分 - 中文PDF精编版
  • BPMN用户指南 第二部分 - 中文PDF精编版
  • BPMN用户指南 第三部分 - 中文PDF精编版
  • 应用程序指南 - 中文PDF精编版
  • 应用程序指南 - 中英对照PDF精编版
  • 应用程序指南 - Eclipse设计器中文PDF精编版
  • 表单用户指南 - 中文PDF精编版
  • 事件注册表用户指南 - 中文PDF精编版

Flowable 6.6.0 事件注册表用户指南

目录

1 事件注册表介绍

  • 1.1 什么是事件注册表
  • 1.2 什么是事件定义
  • 1.3 什么是通道定义(Channel definition)

2 配置

  • 2.1 创建事件注册表引擎
  • 2.2 EventRegistryEngineConfiguration bean
  • 2.3 插入流程引擎
  • 2.4 数据库配置
  • 2.5 JNDI 数据源配置
  • 2.6 支持的数据库
  • 2.7 创建数据库表
  • 2.8 数据库表名解释
  • 2.9 数据库升级
  • 2.10 部署缓存配置
  • 2.11 Logging

3 Flowable 事件注册表API

  • 3.1 事件注册表引擎API与服务
  • 3.2 异常策略
  • 3.3 查询API
  • 3.4 单元测试
  • 3.5 Web应用中的事件注册表引擎

4 Spring集成
5 部署

  • 5.1 事件注册表定义(1,2,3)
  • 5.1 事件注册表定义(4,5,6)
  • 5.2 事件与通道定义的版本化

6 REST API


有关Flowable的更多文档,参见:

《Flowable文档大全》



5 部署

5.1 事件注册表定义

For the Event Registry two types of definitions are supported, Event and Channel definitions. Event definitions have an .event extension and Channel definitions have a .channel extension.

对于事件注册表,支持两种类型的定义:事件定义和通道定义。事件定义具有. event扩展名,而通道定义具有. channel扩展名。

When the Event Registry engine is used with the Process engine, the Event and Channel definitions can be packed into a business archive (BAR) together with other process related resources. The Process engine deployment service will take care of deploying the Event and Channel resources to the Event Registry engine.

当事件注册表引擎与流程引擎一起使用时,事件和通道定义可以与其他流程相关资源一起打包到业务存档(BAR)中。流程引擎部署服务将负责将事件和通道资源部署到事件注册表引擎。

Note
Java classes used for custom expression functions present in the business archive will not be added to the classpath. All custom classes used in expressions in event and channel definitions in the business archive should be present on the Flowable (Event Registry) Engine classpath.

注意
业务存档中用于自定义表达式函数的Java类将不会添加到classpath中。业务存档中,事件和通道定义中表达式中使用的所有自定义类都应出现在Flowable(事件注册表)引擎classpath上。

5.1.1 事件定义

An Event definition configures the event payload structure and the correlation and tenant detection. When deploying an Event definition a new definition is inserted into the FLW_EVENT_DEFINITION table.

事件定义配置事件负载结构、关联和租户检测。部署事件定义时,会将新定义插入到FLW_EVENT_DEFINITION表中。

5.1.2 编程方式部署事件定义

Deploying an Event definition can be done like this:

部署事件定义可以这样做:

String eventDefinition = "path/to/definition-one.event"; //Don't forget the .event extension!repositoryService.createDeployment().name("Deployment of Event definition-one").addClasspathResource(eventDefinition).deploy();

You can use other methods to add the Event definitions to the deployment like addInputStream. This is an example to deploy an Event definition from an external file:

您可以使用其他方法将事件定义添加到部署中,如addInputStream。以下是从外部文件部署事件定义的示例:

File eventFile = new File("/path/to/definition-two.event"); //Don't forget the .event extension!repositoryService.createDeployment().name("Deployment of Event definition-two").addInputStream(eventFile.getName(), new FileInputStream(eventFile)).deploy();

The name of the deployment can be any text but the resource name must always contain a valid Event definition resource name suffix (".event").

部署的名称可以是任何文本,但资源名称必须始终包含有效的事件定义资源名称后缀(“.event”)。

5.1.3 通道定义

A Channel definition configures the source or target destination for an incoming or outgoing event. By default the Flowable Event Registry supports JMS, Kafka and RabbitMQ source and target destinations, but this can be extended with other adapter types as well. When deploying a Channel definition a new definition is inserted into the FLW_CHANNEL_DEFINITION table.

通道定义为传入或传出事件配置源或目标。默认情况下,Flowable Event Registry支持JMS、Kafka和RabbitMQ源和目标,但也可以使用其他适配器类型进行扩展。部署通道定义时,新定义将插入到FLW_CHANNEL_DEFINITION表中。

更多推荐

Flowable 6.6.0 事件注册表用户指南

本文发布于:2024-02-05 10:30:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1744914.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:注册表   事件   用户指南   Flowable

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!