
Publishing business accounts and contracts
Some of the store database assets, (business accounts, and contracts) cannot be loaded by the loading utilities. You can publish these database assets by using the Administration Console or from the command line, as part of the Publish process, or you can publish business accounts and contracts using their corresponding commands.
About this task
The following commands are used to publish business accounts and contracts:
- AccountImport-- Creates business accounts from the
businessaccount.xml
file in the store archive. - ContractImportApprovedVersion--Creates a contract from the
contract.xml
file. If the contract is in active state, the command creates and deploys the contract. Even if thecontract.xml file
contains more than one contract the command only needs to be called once.
Business account assets are included in the form of XML files in some of the starter store archives provided with WebSphere Commerce. However, it is recommended that you create business account assets using the tools provided, rather than creating XML files for these assets. The instructions for publishing business accounts are included in the following sections, in case you choose to publish the corresponding XML files provided with the starter store archives, or create your own.
If you are not using Administration Console to publish the business accounts or contracts, the store and catalog assets must be published before you can publish business accounts, and contracts. In particular you need the store and catalog identifiers, as well as the ID for the organization that owns the store, as well as the IDs for any buyer organizations associated with the contract. If the terms and conditions of your contract do not specify a particular catalog, you do not need to publish a catalog before publishing a business account or contract. If you publish these assets using Administration Console or the command line publish, ensure that you select the catalog option, or that your store already has a published catalog. If you publish these assets using the corresponding commands, ensure that you have already loaded the assets listed above into the database.
You can publish business accounts and contracts using the Publish wizard, or using the PublishStore utility. In order to publish the business accounts and contracts using either the Administration Console or the command line, the assets must be packaged in the store archive format.