Administer > Overview of administering a WebSphere Commerce site > Administration Console > Scheduler > Jobs > Product Advisor cycle
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 in WC_INSTALL\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.
Related concepts
Product Advisor
Shop metaphors
Product Comparison metaphor
Product Exploration metaphor
Guided Sell metaphor
Create a Product Comparison metaphor
Create a Product Exploration metaphor
PACreateSearchSpaceBatchCmd scheduler command
PAXMLExportBatchCmd scheduler command