Item reindexing for IBM Content Manager
You can create an event subscription in IBM® Content Manager so that you are notified when an item is reindexed.
- If the target item type has an event subscription for the REINDEX event, then the reindex to an item type event will be generated.
- If the source item type has an event subscription for the REINDEXFROM event, then the reindex from an item type event will be generated.
Reindex an item event
For the reindex an item event, the case event handler first verifies that the target item type is used in the solution.
- If the handler does not find the proxy document, the handler creates a new proxy document under the document class that corresponds to the new item type name. If this new item type is configured to initiate a new case, the handler creates a new case instance and files the proxy document in the folder for that case. If this new item type is configured as a precondition to initiate a new task, the handler creates a new task.
- If the case event handler finds the proxy document, the handler updates the values of the PID and document class of the proxy document to match the values of the reindexed item. If the target item type is configured to initiate a new case, the reindexed document does not initiate the new case because the document is already in an existing case.
If the target item type is not used in case management, no action is taken and the event is marked as processed in the event monitor database queue.
Reindex from an item event
For the reindex from an item event, the case event handler first verifies that the source item type is used in the solution.
If the source item type is used in the solution, the case event handler finds the proxy document on the IBM Case Manager server and updates the values of the PID and document class of the proxy document to match the values of the reindexed item.
If the case event handler does not find the proxy document, the handler creates a proxy document under the document class that corresponds to the new item type name.