其他 Windchill 功能 > 製造流程管理 > 自訂產品結構總管 (PSE) > 建立「要求」標籤 > 定義 <MenuItem> 元素中參照的 <ActionDefinition> 元素 > 定義「達成要求」動作的 ActionDefinition 元素
  
定義「達成要求」動作的 ActionDefinition 元素
此舉將定義「達成要求」動作的 ActionDefinition 元素。
如上所述,以 'ptc.pdm.ProductStructureExplorer' 的應用程式屬性值找到子元素為 <LogicContext> 的 <ExplorerElementGroup> 元素。在 LogicContext 元素之後新增如下所列的 ActionDefinition 元素:
<ActionDefinition id="mycom.wnc.exp.FulfillRequirementAction"
actionClass="com.ptc.windchill.explorer.structureexplorer.panel
.actions.FulfillChangeActionForStructureWithIntermediateNodeAct
ion">
<StructureAuthorAction>
<Import id="mycom.wnc.exp.PartToRequirementSD"/>
</StructureAuthorAction>
<Import id="ptc.wnc.exp.IsValidInAllWithReadVAL"/>
</ActionDefinition>
* 
在 <ActionDefinition> 中定義的 ID 屬性必須與 PDMLinkExplorerMenusForRequirementsTab.xml 中所定義的 FulfillReqMI 選單項目的已定義匯入 ID 相符。
actionClass 屬性將依據「變更項目」及「設計解決方案」的節點結構來定義。如果將「設計解決方案」設定在「變更項目」節點正下方,則應指定以下類別︰com.ptc.windchill.explorer.structureexplorer.panel.actions.FulfillChangeActionAction。如果將「設計解決方案」設定在其「變更項目」節點以下兩個層級,則應指定以下類別:com.ptc.windchill.explorer.structureexplorer.panel.actions.FulfillChangeActionForStruc tureWithIntermediateNodeAction。
<StructureAuthorAction> 元素中的匯入 ID 必須與 ExplorerStructures.xml 檔案中定義的結構定義 ID 相符。
位於 actionClass 所定義層級中的所有零件均會被視為達成要求的可能「設計解決方案」,並顯示在挑選清單中供使用者檢視。