申請先属性の設定
1 つのタイプの改訂可能な承認申請または改訂不可能な申請に対して「申請先」属性を設定できます。それには、以下の手順に従います。
1. 品質コンテキストを作成します。
2. 「ユーティリティ」 > 「ユーザーと場所の管理」で、「監督官庁」タイプの場所を作成します。
3. その場所の「代替識別子」を指定します。
4. ライブラリ、組織、またはサイトの「ユーティリティ」 > 「オブジェクト初期化規則管理」で、承認申請のタイプに対するオブジェクト初期化規則を作成します。既存のオブジェクト初期化規則 XML ファイルをダウンロードして編集することもできます。
5. 規則ファイル内の属性値の場合は、submittedToReferenceid の値として、com.ptc.qualitymanagement.masterdata.entity.util.PersonOrPlaceAlternatedIdentifierRuleAlgorithmalgorithm の値として追加します。この属性には 2 つの引数が含まれています (監督官庁の代替識別子の引数と監督官庁を含むコンテキストへのパスの引数)。属性制約を定義する場合、「申請先」属性の値は指定できません。この値はオブジェクト初期化規則に応じて生成されます。属性制約が定義されていない場合は、「申請先」属性の値を指定するか、オブジェクト初期化規則に応じて生成された値を使用できます。
<AttributeValues objType="com.ptc.qualitymanagement.regmstr.RegulatorySubmission">
<!-- Instantiate the "submittedToReference" OIR for Regulatory Agency -->
<AttrValue id="submittedToReference" algorithm="com.ptc.qualitymanagement.masterdata.entity.util.PersonOrPlaceAlternatedIdentifierRuleAlgorithm">
<!-- First argument is the alternative identifier for the intended Regulatory Agency. -->
<Arg>FDA</Arg>
<!-- Second argument is the container path for which the intended Regulatory Agency lives. -->
<Arg>/wt.inf.container.OrgContainer=Demo Organization/wt.inf.library.WTLibrary=DivA</Arg>
</AttrValue>
<!-- Attribute constraints to ensure the attribute is immutable on the UI. Attribute will show as "(generate)", instead of giving a user input. -->
<AttrConstraint id="submittedToReference" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints" ignore="false" force="false" final="false">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"></Value>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"></Value>
</AttrConstraint>

<!-- Attribute constraint to automatically populate the user input field. This will not restrict the user from changing the value. -->
<AttrConstraint id="submittedToReference" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>
</AttrConstraint>
</AttributeValues>
6. XML ファイルを更新した後、このファイルを「オブジェクト初期化規則管理」で適切なタイプの承認申請にアップロードします。
これは役に立ちましたか?