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.

Reindexing an item moves that item from the source item type to the target item type. The event that is generated depends on the event subscription:
  • 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.
Restriction: You cannot reindex an IBM Content Manager item that is attached to a task or an IBM Business Process Manager process in IBM Case Manager. Reindexing the item breaks the task or process.

Reindex an item event

Tip: The reindex an item event is displayed as Add To Item Type in the IBM Content Manager system administration client.

For the reindex an item event, the case event handler first verifies that the target item type is used in the solution.

If the target item type is used in the solution but the source item type is not, the case event handler uses the item ID of the original document to search the case folders on the IBM Case Manager server for a proxy document that corresponds to the document that was reindexed:
  • 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

Tip: The reindex from an item event is displayed as Remove From Item Type in the IBM Content Manager system administration client.

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.