Configuring the Submitted To Attribute
You can configure the Submitted To attribute for a type of revisable regulatory submission or a non-revisable submission. To do so, complete the following steps:
1. Create a quality context.
2. In Utilities > People and Places Administration, create a place of type Regulatory Agency.
3. Specify an Alternate Identifier for the place.
4. In Utilities > Object Initialization Rules Administration of Library, Organization, or Site, create an object initialization rule for the type of regulatory submission. You can also download and edit an existing object initialization rule XML file.
5. For the attribute value in the rule file, add submittedToReference as the value of id and com.ptc.qualitymanagement.masterdata.entity.util.PersonOrPlaceAlternatedIdentifierRuleAlgorithm as the value of algorithm. The attribute contains two arguments: the argument for the alternate identifier of the regulatory agency, and the argument with the path to the context that contains the regulatory agency. If you define an attribute constraint, the user cannot specify the value of the Submitted To attribute. The value is generated depending on the object initialization rule. If the attribute constraint is not defined, you can specify the value of the Submitted To attribute or use the value that is generated depending on the object initialization rule.
<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. After you have updated the XML file, upload the file to the appropriate type of regulatory submission in Object Initialization Rules Administration.
Was this helpful?