Flowable 6.6.0 事件注册表用户指南 - 5 部署 - 5.1 事件注册表定义(1,2,3)

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

Flowable 6.6.0 事件注册表用户指南

目录

1 事件注册表介绍

2 配置

3 Flowable 事件注册表API

4 Spring集成
5 部署

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表中。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
本课程是《Flowable流程入门课程》的后续高级课程。在学习本课程前,应先学习入门课程,以掌握相关基础知识。高级课程着重讲解Flowable工作流的高级概念、复杂理论和实战应用。课程内容包括流程管理思想、技术与标准、工作流的控制模式和资源模式;Flowable数据库表及变量;与Spring、Spring Boot的集成;BPMN 2.0主要类图;Flowable高级服务如JAVA服务任务、脚本任务、Web Service任务、外部工作者任务、多实例任务、补偿处理程序、子流程和调用活动等;Flowable事件侦听器、执行侦听器和任务侦听器;Flowable历史和REST API;Flowable事务、并发性、身份管理及LDAP集成;Flowable高级主题如流程实例迁移、异步执行器的设计与配置、用于高并发的UUID ID生成器、多租户、高级流程引擎配置、执行自定义SQL和实验性流程调试器等;Flowable Eclipse设计器特性及定制;Flowable 事件注册;Flowable相关标准和规范如ISO8601标准和cron等。本课程对Flowable官方文档进行了彻底梳理和融汇贯通,并结合实践,形象生动、系统全面、简单易懂地呈现给大家,让大家从开源软件文档冗长耗时、英文晦涩难懂、概念理解困难、知识点分散等困境中解脱出来,从而能快速地将Flowable具有的高级特性应用到项目的高级需求和复杂实践中去。课程特色:案例和代码驱动、基础概念与经典实战相结合、知识环节融会贯通、关联知识平滑拓展、概念和原理展示形象生动。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

月满闲庭

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值