cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new itemtype to hybris cloud hot folder

former_member696137
Discoverer
0 Kudos

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'?

x1111111111
Explorer
0 Kudos

did you get answer for this ?

Accepted Solutions (0)

Answers (0)