流程#
Flow.Show
概述#
流程代表物料的预定义路线或路径。
流程是其他流程或步骤的组合。必须强调的是,一个流程只能具有相同级别的流程或步骤。
在任何给定时间,一个流程可以由多个物料共享。物料始终位于流程中。由于流程可以嵌套,因此物料流程总是指顶部的主流程。
因为步骤和流程可以在给定的流程中重复,所以流程中步骤(或子流程)的唯一位置由流程路径决定。流程路径包括一个序列,格式为Flow:CorrelationId/Flow:CorrelationId/.../Step:CorrelationId。CorrelationId允许在创建新版本时对流程进行更改,并且仍保留与以前的流程版本的兼容性。对于特定的流程版本,CorrelationId还映射到一个位置(或序列),该位置定义了步骤/流程在特定流程中的位置。将新的流程版本设置为有效时,系统将使用CorrelationId检查没有物料停留在无效的流程路径中。这允许对步骤/流程进行重新排序、添加新的步骤/流程以及删除没有物料的步骤/流程。
Info
物料始终在内部储存流程路径,并引用CorrelationID。在GUI中的某些位置,将显示一个用户友好的流程路径,此流程路径使用的是位置而不是CorrelationId。
流程可以标记为备用。如果流程是备用流程,则意味着该流程中的物料仅采用子流程或子步骤之一。在运行时,必须指定要采用的特定路径。
流程中的步骤可以标记为可选。这表示可以执行或不执行该步骤。在运行期间,必须指出物料是否移动到可选步骤。
流程可以是非顺序块。非顺序块由一组步骤组成,可以按任何顺序执行。非顺序块必须包含至少一个非可选步骤。
以下限制适用于流程:
- 流程不能为空 - 它必须至少有一个子流程或一个步骤。
- 如果流程具有步骤且不是非顺序块,则最后一个步骤不能是可选步骤。
- 备用流程不能具有可选步骤。
- 非顺序块*流程**不能是备用*流程。
- 非顺序块流程不能具有重复步骤。
即使流程可以跨越多个工厂设施,间接地通过构成流程的步骤的车间,在运行时,如果步骤属于不同的工厂设施,则将无法执行物料迁移至下一站。在工厂设施之间移转物料的唯一方法是通过运送物料事务。
流程可以启用或禁用。禁用的流程会阻止任何物料被分配给该流程,无论是物料创建、物料流程更改还是任何其他操作。如果物料已存在于禁用的流程中,则可以继续正常处理。
包含步骤的流程可以为每个步骤配置返工信息。返工信息会分别分配给每个步骤。一个步骤可以具有多个返工路径。返工路径包含转至流程路径、同一流程中的返回步骤以及可选的步骤返工原因,用于指示返工路径是该返工原因的默认路径。
Warning
用作返工流程的流程可能仅包含步骤。由其他流程组成的返工流程不得用于返工。
全局数据和版本控制数据#
流程是一个更改受控对象,包含全局数据和版本控制数据组件,如下图所示。
graph TD
subgraph Flow
Main1["Global Data<br>(Without Change Control)"] --- A1[IsEnabled]
Main2["Versioned Data<br>(With Change Control)"] --- A2[IsAlternate<br>SubFlows or Steps<br>Rework Paths<br>All other]
end
classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
classDef mermaid_state color:#000, fill:#d7e4bd, stroke:#000, stroke-width:1px, font-size:100%, font-weight:300;
class Main1,Main2 mermaid_entity
class A1,A2 mermaid_entitylinked 流程也是几个上下文解析表中的可选元素:
- BOMContext
- MaterialChecklistContext
- MaterialDataCollectionContext
- MaterialDocumentContext
- MaterialDurablesContext
- MaterialPrintableDocumentContext
- ServiceContext
- StepChartContext
- MaterialDurablesContext
- RecipeContext
- RecipeParameterOverrideContext
- StepInspectionPlanContext
- StepLineFlowContext
- StepProductYieldAndCycleTimeContext
- StepSamplingPatternContext
- StepSplitTrackOutContext
- TimeConstraintsContext
将一切捆绑在一起#
graph LR
A1[Notification] -.- Main[Flow]
A2[Product] -.- Main
A3[Schedule Scenario Job] --- Main
A4[Protocol Instance] -.- Main
Main --- A5[Material]
Main -.- A6[Data Collection Instance]
Main -.- N1[Flow Logical Name]
Main === L1[Sub Flow]
Main === L2[Flow Step]
L2 --- L3[Rework Path]
L3 --- A7[Reason]
Main -.- C1[Context Smart Tables]
classDef mermaid_title color:#000, fill:#fafafa, stroke:#fafafa, stroke-width:0x, font-size:100%, font-weight:200;
classDef mermaid_start color:#000, fill:#fafafa, stroke:#fafafa, color:#fafafa, stroke-width:0x, font-size:100%, visibility: hidden;
classDef mermaid_businessdata color:#000, fill:#65CDE8, stroke:#65CDE8, stroke-width:0px, font-size:100%;
classDef mermaid_nonbusinessdata color:#000, fill:#B7DEE8, stroke:#B7DEE8, stroke-width:0px, font-size:100%;
classDef mermaid_entity color:#000, fill:#FB9F53, stroke:#FB9F53, stroke-width:0px, font-size:100%;
classDef mermaid_entitylinked color:#000, fill:#FCD5B5, stroke:#FCD5B5, stroke-width:0px, font-size:100%;
classDef mermaid_context color:#000, fill:#B9CDE5, stroke:#B9CDE5, stroke-width:0px, font-size:100%;
classDef mermaid_optional color:#000, fill:#B7DEE8, stroke:#65CDE8, stroke-width:1px, font-size:100%, stroke-dasharray: 5 5;
class Main mermaid_entity
class A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12 mermaid_businessdata
class L1,L2,L3,L4,L5,L6 mermaid_entitylinked
class C1,C2,C3,C4,C5,C6 mermaid_context
class N1,N2,N3,N4,N5,N6 mermaid_nonbusinessdata
click Main "../../business-data/flow"
click A1 "../../business-data/notification"
click A2 "../../business-data/product"
click A4 "../../business-data/protocol/protocol-instance"
click A5 "../../business-data/material"
click A6 "../../business-data/data-collection/data-collection-instance"
click A7 "../../business-data/reason"
click L1 "../../business-data/flow"
click L2 "../../business-data/step" Info
在上图中,仅显示与服务的上下文关系。
步骤顺序#
正确使用流程的必要步骤如下:
- 创建必要的步骤并为流程创建必要的子流程。
- 创建流程 - 请注意,必须将流程版本与变更集关联。
- 批准变更集,该变更集包含已创建的流程版本。
Info
为方便起见,可以将流程配置为使用隐式变更集。有关详细信息,请参阅变更集部分。