on 08-11-2020 12:49 PM
I'm using hybris 1905 cloud commerce. I've set up hot folder to work in my local environment, and I'm trying to add a new itemtype to be imported via CSV. I've added the below configurations but hotfolder doesn't see this itemtype, and instead interprets the file as 'Product' type. How can I make the configuration for hotfolder to read CSV files with given itemtype?
local.properties
<code>cluster.node.groups=integration,yHotfolderCandidate
azure.hotfolder.storage.account.connection-string=DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;
#defaults
azure.hotfolder.storage.container.name=hybris
azure.hotfolder.storage.container.hotfolder=master/hotfolder
azure.hotfolder.storage.container.match.pattern=^((?!ignore).)*$
azure.hotfolder.storage.polling.fixed.rate=150000
azure.hotfolder.storage.polling.fetch.batch-size=1
azure.hotfolder.storage.delete.remote.files=true
cloud.hotfolder.default.mapping.file.name.pattern=^(customer|product|url_media|product_property|product_property_value|property_value_relation|test)-\\d+.*
<code>cloud.hotfolder.default.mapping.header.catalog=myStoreProductCatalog
mystorecore-items.xml
<code><itemtype code="ProductProperty" autocreate="true" generate="true">
<deployment table="ProductProperty" typecode="12500"/>
<attributes>
<attribute qualifier="name" type="java.lang.String">
<modifiers read="true" write="true" unique="true" />
<persistence type="property"/>
</attribute>
<attribute qualifier="valueType" type="SolrPropertiesTypes">
<description>Type of the value(String,Boolean,BigDecimal)</description>
<modifiers read="true" write="true" />
<persistence type="property"/>
</attribute>
<attribute qualifier="facet" type="java.lang.Boolean">
<description>Indicates if this is a faceted value or not</description>
<modifiers read="true" write="true" optional="false"/>
<defaultvalue>java.lang.Boolean.FALSE</defaultvalue>
<persistence type="property"/>
</attribute>
<attribute qualifier="indexName" type="java.lang.String">
<description>Indexed name of this property</description>
<modifiers read="true" write="true" unique="true"/>
<persistence type="property"/>
</attribute>
</attributes>
</itemtype>
mystorecore -> resources -> mystorecore -> integration -> hot-folder-common-spring.xml (I also tried to open a new file called hot-folder-store-mystore-spring.xml and use the same configurations)
<code> <bean id="defaultImpexProductPropertyHeader">
<constructor-arg>
<value/>
</constructor-arg>
</bean>
<bean id="batchProductPropertyConverterMapping"
p:mapping="product_property"
p:converter-ref="batchProductPropertyConverter"/>
<bean id="batchProductPropertyConverter">
<property name="header">
<value>#{defaultImpexProductPropertyHeader}
# Import product property
INSERT_UPDATE ProductProperty;name[unique=true];valueType;facet
</value>
</property>
<property name="impexRow" value=";{+0};{+1};{+2}"/>
<property name="type" value="ProductProperty"/>
</bean>
when I drop a CSV file called product_property-00.csv, it sees it as 'Product' type instead of 'ProductProperty'. How can I make the configuration for hotfolder to see my csv file as 'ProductProperty'?
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.