Advanced Customization > Business Logic Customization > Packages Customization > Restrict the Collection of Missing Objects For Defined Contexts and Recipients
  
Restrict the Collection of Missing Objects For Defined Contexts and Recipients
Missing object collection, when not configured for a certain context or recipient, searches through all the contexts in the system. The data is irrelevant if the missing objects of certain contexts or recipients are not required for replication. Searching through all the contexts in the system slows down the creation of the delivery zip file. You can restrict the collection of missing objects for a certain context or set of contexts and for a context and recipient.
Defining Contexts for Missing Object Collection
In ReplicationMissingInfo-wt.properties.xconf file, define the property com.ptc.windchill.wp.missingObject.defaultTrackedContexts1 with a context or set of contexts. After defining the contexts, the missing objects for the context or set of contexts are collected and appear in the Missing Object table. The default value of this property is all products and libraries.
To restrict the missing object collection for a context, define the value of the property, as follows:
com.ptc.windchill.wp.missingObject.defaultTrackedContexts[1...]="/wt.inf.container.OrgContainer=<Organization>/wt.pdmlink.PDMLinkProduct=<Product or Library>"
You can use the property com.ptc.windchill.wp.missingObject.defaultTrackedContexts1to define the contexts in various formats. See the following scenarios and their examples:
If the library (context) is Drive System and the organization is Demo Organization, the value of the property is defined as follows:
com.ptc.windchill.wp.missingObject.defaultTrackedContexts1="/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=Drive System"
If the product (context) is Product1 and the organization is Demo Organization, the value of the property is defined as follows:
com.ptc.windchill.wp.missingObject.defaultTrackedContexts2="/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=Product1"
You can define a new value, combining the values that are already defined, by using $ sign, as follows:
Combine a contexts that already exists and define a new context into a single property. See the following example:
com.ptc.windchill.wp.missingObject.defaultTrackedContexts1="$com.ptc.windchill.wp.missingObject.defaultTrackedContexts1,/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=Product1"
Combine the contexts that already exists to define a new context or set of contexts. See the following example:
com.ptc.windchill.wp.missingObject.defaultTrackedContexts1="$com.ptc.windchill.wp.missingObject.defaultTrackedContexts1,$com.ptc.windchill.wp.missingObject.defaultTrackedContexts2
Defining Context and Recipient for Missing Object Collection
To restrict the collection of missing object to a set of contexts for a recipient, set the property com.ptc.windchill.wp.missingObject.trackReceipientLevelContexts=false to True. The default value of this property is false.
To restrict the collection of missing object to a context or set of contexts for a recipient, define the value of the property as follows:
com.ptc.windchill.wp.missingObject.receipientAndContext[1…..]=<RecipientName>:<Contexts>
After defining the contexts and recipients, the missing objects for the context or set of contexts and the recipient are collected and appear in the Missing Object table. See the following example:
If the recipient is MyTestUser and context is Drive System, the value of the property is defined as follows:
com.ptc.windchill.wp.missingObject.receipientAndContext1="MyTestUser:/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=Drive System"
You can define the value using the properties that are already defined, by using $ sign as follows:
com.ptc.windchill.wp.missingObject.myUserContexts="/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=Drive System,/wt.inf.container.OrgContainer=Demo Organization/wt.pdmlink.PDMLinkProduct=MyContext"

com.ptc.windchill.wp.missingObject.receipientAndContext1="MyTestUser:$ com.ptc.windchill.wp.missingObject.myUserContexts"

com.ptc.windchill.wp.missingObject.receipientAndContext2=uid=vishal,ou=people,cn=administrativeldap,cn=windchill_11.2,o=ptc|Ldap.ptcnet.ptc.com|Ldap.ptcnet.ptc.com:$com.ptc.windchill.wp.missingObject.myUserContexts
* 
The uid for a user is available on the details page of the user.