挂起流程实例

Suspending a process instance

在我的流程定义中,我有以下内容:

multiInstanceLoopCharacteristics isSequential="false"....

由此我了解到,对于多组输入数据,引擎会创建多个流程定义实例,然后 运行 并行。

来自官方文档page:

It’s also possible to suspend a process instance. When suspended, the process cannot be continued (e.g. completing a task throws an exception) and no jobs (such as timers) will executed. Suspending a process instance can be done by calling the runtimeService.suspendProcessInstance method. Activating the process instance again is done by calling the runtimeService.activateProcessInstanceXXX methods.

那么,如果我暂停流程定义,它会以任何方式影响其他并行 运行ning 实例吗?

不,这是针对单个流程实例的。即您在方法中提供的 进程实例 ID。您理解正确,引擎将创建多个实例(每个实例都有一个唯一的流程实例 ID),稍后可以单独挂起。