The startDocumentStoreMigration command is used to migrate
document attachments from the IBM BPM database to the IBM BPM document
store. The migration of document attachments to the IBM BPM document
store is considered to be a required IBM BPM post-migration task and
it should be done after the database migration has been completed.
The original versions of the document attachments will continue to
reside in the IBM BPM database until all documents have been migrated.
After the migration is complete, you can use either coaches or heritage
coaches to work with BPM documents in the IBM BPM document store.
Before you begin
Before you attempt to migrate your document attachments
to the IBM BPM document store, you should review the topic "Limitations
in administering the IBM BPM document store" to ensure that your system
meets the requirements for document migration.
When document
attachments are being migrated to the IBM BPM document store, they
are temporarily stored twice in the IBM BPM database. For this reason,
you should ensure that the database has sufficient storage to accommodate
the twice-stored documents before you start the document migration.
Note: The
IBM BPM document store must be used with a Federated Repositories
user registry. If you migrate your documents to the IBM BPM document
store and you later change to another form of user registry, such
as a stand-alone LDAP registry or a custom registry, you may lose
access to your documents.
The IBM BPM document store restricts
document size to 1 gigabyte or less. If the content of any document
attachment in the BPM database exceeds 1 gigabyte, you cannot migrate
the document attachment to the IBM BPM document store. The document
attachment will remain in the BPM database, but a reference to the
document attachment will be created in the IBM BPM document store.
You can access the content of the document attachment through APIs
and CMIS operations as if the document had been completely migrated.
About this task
To migrate document attachments to the IBM BPM document
store, complete the following steps:
Procedure
- Run the getDocumentStoreStatus command.
This wsadmin command returns the command syntax that can be used as
well as the status of any document migration, as shown in the following
sample:
AdminTask.getDocumentStoreStatus('[-deName
myDeName]')
CWTDS2018I: The IBM
BPM document migration has not yet started. '{0}' documents need to
be migrated.
To pass more parameters for the
command, you can use the following syntax:
profile_root\bin\wsadmin
-user my_user_name -password my_password -lang
jython -c "print AdminTask.getDocumentStoreStatus('[-deName myDeName]')"
For
example:
C:\8500PC\STANDARD\deploy2\AppServer\profiles\DmgrProfile\bin>wsadmin
-user tw_admin -password tw_admin -lang jython -c "print AdminTask.getDocumentStoreStatus('[-deName
De1]')"
For detailed information about the getDocumentStoreStatus
command, see the "getDocumentStoreStatus command" topic.
- Run the startDocumentStoreMigration command.
This wsadmin command returns the command syntax that can be used,
as shown in the following sample:
AdminTask.startDocumentStoreMigration('[-deName
myDeName]')
To specify other parameters for the
command, you can use the following syntax:
profile_root\bin\wsadmin
-user my_user_name -password my_password -lang
jython -c "print AdminTask.startDocumentStoreMigration('[-deName myDeName]')"
For
example:
C:\8500PC\STANDARD\deploy2\AppServer\profiles\DmgrProfile\bin>wsadmin
-user tw_admin -password tw_admin -lang jython -c "print AdminTask.startDocumentStoreMigration('[-deName
De1]')"
For detailed information about the startDocumentStoreMigration
command, see the "startDocumentStoreMigration command" topic.
- Run the getDocumentStoreStatus command
again to check the status of the document migration. If the migration
is proceeding successfully or has completed successfully, the command
will return one of the following messages:
CWTDS2019I:
The IBM BPM document migration is running. '{0}' of '{1}' documents
are already migrated.
CWTDS2020I:
The IBM BPM document migration is running. '{0}' of '{1}' documents
are already migrated. A cleanup is currently in progress.
CWTDS2021I:
The IBM BPM document migration has finished. '{0}' documents were
migrated.
If one or more documents fail to migrate
successfully, the getDocumentStoreStatus command
may return one of the following messages:
CWTDS2022I:
The IBM BPM document migration has stopped with an error. '{0}' of
'{1}' documents are already migrated. For '{2}' documents, the migration
failed.
CWTDS2023I: The migration
failed for document '{0}'. Details: '{1}'.
- If a message indicates that one or more of the documents
has failed to migrate successfully, complete one of the following
steps:
What to do next
After the document migration has completed, the database
tables LSW_BPD_INSTANCE_DOCUMENTS and LSW_BPD_INSTANCE_DOC_PROPS should
be empty in the IBM Process Server database. However, if the database
contained documents larger than 1 gigabyte or if the
-keepFailedDocuments option
was used, the database may contain a few remaining rows. If you want,
you can optionally reorganize the tables to release the disk space
that was used by the deleted table rows. For example, for DB2 databases,
you can reorganize the tables using the REORG and RUNSTATS commands.