Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

复制流程

在流程设计器中, 可以使用流程属性中的可用选项来复制同一个包下的现有流程。

Image Added
图1:复制流程

由于设计是由XML写的, 我 们可以检查源代码。

Image Added
图2:复制流程为“process1”

去除参与者

Image Added

图3:两个进程共享同一组参与者

请注意,这两个流程仍将使用相同的参与者。在任何流程中修改名称或删除参与者可能会影响使用特定参与者的所有其他进程。

Image Added

图4:删除和删除参与者

移除参与者将只移除特定过程中的泳道。参与者仍然存在于设计包中。

但是,删除将完全删除整个设计包中的参与者。如果有任何使用已删除参与者的进程,您可以在屏幕截图中看到以下内容。

Image Added

图5:删除的参与者导致现有流程出现问题

参与者分离

根据您的设计要求,有时您可能不希望在相同的流程中分享参与者,以便在不影响其他流程的情况下单独重命名参与者,您需要:

  1. 创建新参与者并将旧参与者中的现有活动逐个移动到新参与者。
  2. 创建新参与者,在XPDL视图中查找使用旧参与者的活动,并在您喜欢的文本编辑器中进行搜索和替换。

Duplicate Process

In the Workflow Designer, it is possible for one to duplicate existing process under the same package using the option available in the process's properties.

Image Removed
Figure 1: Duplicate Process

Since the design is made up using XML, we may inspect on what is going on behind the scene.

Image Removed
Figure 2: Duplicated Process as "process1"

Removal of participants

Image Removed
Figure 3: Both processes share the same set of participants

Take note that both processes would still use the same of of participants. Modifying the name or removal of participant at any of the processes may affect all other processes that uses the particular participant.

Image Removed
Figure 4: Delete and Remove participant

Remove participant will only remove the swimlane from the particular process. The participant would still exists in the design package.

However, Delete will completely erase such participant from the entire design package. If there's any process that uses the deleted participant, you may see the following in the screenshot.

Image Removed
Figure 5: Deleted participant causing problem to existing processes

Separation of participants

Depending on your design requirement, sometimes, you may not want to share the participants across the same processes so that you would have the liberty to rename your participants individually without affect any other processes, you will need to either:-

...