Develop > Presentation layer > Customize marketing > Work with Product Advisor
PACreateMetaphorBatchCmd scheduler command
This scheduler command creates a Product Exploration metaphor, Product Comparison metaphor, or a Guided Sell metaphor for a category based on the input XML file provided.
Parameter values
- xmlFileName
- Required: The name of the input XML file with the fully qualified path. The XML file must exist on the machine where you have installed WebSphere Commerce. For example,
WCDE_INSTALL\samples\pa\xml\PE_PC_GS_60001.xml
Behavior
- Deletes a metaphor for the category if any one of the following XML tags are present in the input XML file:
- delete_productComparer
- delete_productExplorer
- delete_salesAssistant
- Creates metaphors that are defined in the input XML file.
- Deletes an existing Product Exploration metaphor, Product Comparison metaphor, or a Guided Sell, and then recreates the metaphor based on the input XML file provided.
- Populates the following database tables when a Product Exploration metaphor or Product Comparison metaphor is created:
- Populates the following database tables when a Guided Sell is created:
- ICMETAPHOR
- ICMETAPROP
- ICCNCPTLNK
- ICCONSTRNT
- ICCONSTVAL
- ICKNOWDESC
- ICKNOWLEDG
- ICMERDESC
- ICMERTREE
- ICMREGDESC
- Creates a inputXMLName_timestamp.log log file...
- WC_INSTALL \instances\ instance \logs.
- WC_USER \instances\ instance \logs.
Exception conditions
- If the search space for a category does not exist, then the command throws the ECApplicationException exception.
- If the input parameter is wrong, then the command throws the ECApplicationException exception.
- If the file name provided for the xmlFileName parameter is not valid, then the command throws the ECApplicationException exception.
- If the elements defined in the XML input file do not correspond to the DTD, then the command throws the ECApplicationException exception.
- If a non root user runs the WCS instance but does not have the relevant read permissions for the input XML file, then the command fails.
- If the instance user profile does not have the permissions to access the file, the command will fail.
Related concepts
Related tasks
Create a Product Comparison metaphor
Create a Product Exploration metaphor
Create a Guided Sell for a category
Related reference
PACreateSearchSpaceBatchCmd scheduler command
PAXMLExportBatchCmd scheduler command