已產生的製程計劃的規則檔案
規則檔案指定當建立或更新已產生的製程計劃時要套用的規則。它定義已產生的製程計劃的結構。您可以為指定的物件類型,指定應從泛用製程計劃延用至已產生的製程計劃的屬性與關聯。如果未指定,會延用所有屬性與關聯。
定義規則檔案
規則會使用下列指定元素以結構化的方式在 JSON 格式的文字檔案中定義:
如範例所示,您可以在規則檔案中為特定物件類型定義多個規則。規則必須包含 sourceTypetargetType 區塊。您可以在相同規則檔案中為多個物件類型指定規則。
以下是描述使用關係連結與工序作為來源與目標類型的兩個範例:
{
"sourceType": "com.ptc.windchill.mpml.processplan.operation.MPMOperationUsageLink",
"targetType": "com.ptc.windchill.mpml.processplan.operation.MPMOperationUsageLink"
}
{
"sourceType": "com.ptc.windchill.mpml.processplan.sequence.MPMSequence",
"targetType": "com.ptc.windchill.mpml.processplan.sequence.MPMSequence",
"excludedAttributes": "BranchingOperation",
"excludedAttributesForUpdate": "ReturnOperation"
}
重點
sourceTypetargetType 區塊中指定之類型的組合在規則檔案中具唯一性。
除非另有明確指定,否則在 sourceType 中指定之類型的所有子類型都會繼承指定的規則。
使用 attributeToSyncMappings 為選用。當來源與目標屬性不同時,可以使用它。
針對特殊屬性,例如「長描述」,您需要以不同方式指定內部名稱,例如 longDescriptionRichText.formattedText
您可以配置內容 com.ptc.windchill.associativity.reconciliation.excludedTypes,來指定在建立或更新已產生的製程計劃時不應延用的文件類型。如需詳細資訊,請參閱傳播上游變更
建立規則檔案之後,您需要將其與泛用製程計劃相關聯。如需詳細資訊,請參閱將規則檔案與泛用製程計劃相關聯
這是否有幫助?