Flowable 6.6.0 BPMN用户指南 -10 流程实例迁移 -10.2~4

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


《Flowable 6.6.0 BPMN用户指南》

1. 入门
2. 配置
3 The Flowable API
4 Flowable 6.6.0 BPMN用户指南 - (4)Spring集成
5 Spring Boot
6 部署
7 BPMN 2.0简介
8 BPMN 2.0的构造
9 表单(Forms)

10 流程实例迁移

10.1 简单示例
10.2 使用活动迁移映射进行迁移
10.3 支持的流程实例迁移案例
10.4 即将提供的流程实例迁移支持


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

《Flowable文档大全》


10.2 使用活动迁移映射进行迁移

In the simple example user task 1 was automatically mapped to the same user task in the new process definition version. But in some cases the current activity of a running process instance doesn’t exist anymore in the new process definition, or the activity should be migrated to another activity for another reason. For this use case, the process instance migration builder allows you to specify a list of specific activity migration mappings.

在这个简单的示例中,用户任务1自动映射到新流程定义版本中的同一用户任务。但在某些情况下,新流程定义中不再存在正在运行的流程实例的当前活动,或者该活动由于其他原因应迁移到另一个活动。对于此用例,流程实例迁移生成器允许您指定一个特定活动迁移映射的列表。

ProcessInstanceMigrationValidationResult validationResult = runtimeService.createProcessInstanceMigrationBuilder()
    .migrateToProcessDefinition(version2ProcessDef.getId())
    .addActivityMigrationMapping("userTask1Id", "userTask2Id")
    .migrate(processInstanceToMigrate.getId());

In this example running process instance with an active state of user task 1 will be migrated to a new process definition version with 2 user tasks, and the active state will be migrated to user task 2. This means that when user task 2 is completed the process instance will be ended.

在本例中,正在运行的流程实例(活动状态为“用户任务1”)将迁移到新流程定义版本(包含2个用户任务),而活动状态将迁移到用户任务2。这意味着当用户任务2完成时,流程实例将结束。

10.3 支持的流程实例迁移案例

This section provides an overview of the supported cases for process instance migration. If the case you are looking for is not yet supported have a look at next section with upcoming support.

本节概述了支持的流程实例迁移案例。如果您要查找的案例还不支持,请查看下一节中即将提供的支持。

  • automatic migration of wait states (user task, receive task, intermediate catch events) to activities with the same id in the new process definition version.

  • manual migration of wait states by specifying the target activity for a specific active state in the running process instance.

  • migrating a wait state to an activity with a boundary timer, signal or message event.

  • migrating a wait state with a boundary timer, signal or message event to an activity without a boundary event.

  • migrating a wait state to an activity in an embedded sub process or a nested embedded subprocess.

  • 自动将等待状态(用户任务、接收任务、中间捕获事件)迁移到新流程定义版本的具有相同id的活动。

  • 通过为正在运行的流程实例中的特定活动状态指定目标活动,已完成等待状态的手动迁移。

  • 将等待状态迁移到具有边界定时器、信号或消息事件的活动。

  • 将带有边界定时器、信号或消息事件的等待状态迁移到没有边界事件的活动。

  • 将等待状态迁移到嵌入子流程或嵌套嵌入式子流程中的活动。

  • migrating a wait state in an embedded sub process or a nested embedded sub process to the root level of the process definition or another nested scope.

  • migrating a wait state to an activity in an (nested) event sub process, both interrupting and non-interrupting.

  • migrating multiple executions when using a parallel or inclusive gateway, to one execution outside of the gateway scope.

  • migrating from a single execution to multiple executions within a parallel or inclusive gateway.

  • migrating a wait state to an activity in the parent process.

  • 将嵌入式子流程或嵌套嵌入式子流程中的等待状态迁移到流程定义的根级(root level)或另一个嵌套范围。

  • 将等待状态迁移到(嵌套)事件子流程中的活动,包括中断的和非中断的(interrupting and non-interrupting.)。

  • 将使用并行或包含式网关时的多个执行迁移到网关范围之外的一个执行。

  • 在并行或包含式网关中,将单个执行迁移到多个执行。

  • 将等待状态迁移到父流程中的活动。

10.4 即将提供的流程实例迁移支持

With this version of the Flowable Engine the first step with process instance migration support is added. In the next version the focus is on adding support for the following migration cases:

使用此版本的Flowable引擎,添加了支持流程实例迁移的第一步。在下一个版本中,重点是添加对以下迁移案例的支持:

  • Support to move a collection of multi instance executions to another activity.

  • Support to move a wait state to a multi instance activity.

  • Support to move a wait state to an activity in a sub process, when one or more call activities are present in the process definition.

  • Support to add and remove variables in the process instance or local execution scope.

  • Support to define the assignment rules and other configuration options of a target user task.

  • 支持将多实例执行集合移动到另一个活动。

  • 支持将等待状态移动到多实例活动。

  • 当流程定义中存在一个或多个调用活动(call activities)时,支持将等待状态移动到子流程中的活动。

  • 支持在流程实例中或局部执行范围内添加和删除变量。

  • 支持定义目标用户任务的分配规则和其他配置选项。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

月满闲庭

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

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

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

打赏作者

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

抵扣说明:

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

余额充值