Skip to Content

Type is not supported for RuleActionDefinitionParameter

Hi,

I am trying to create RuleActionDefinitionParameter with custom item type like below,

 INSERT_UPDATE RuleActionDefinitionParameter;definition(id)[unique=true];id[unique=true];priority;name[lang=en];description[lang=en];type;value;required[default=false];validators
 ;y_change_delivery_mode;replaceable_delivery_mode;900;replaceable delivery modes;the delivery modes to be swapped when promotion applied;ItemType(DeliveryModeGroup);;;


I am able to see that param in action but on selection I am getting error like below,

alt text

And in console I am seeing this error,

alt text

Any clue why I am getting this error.

Thanks

7823-backoffi.png (37.3 kB)
7824-conso.png (9.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 23, 2017 at 09:57 AM

    Hi,

    I forgot to add value mapper for new item definition, after adding like below its working fine.

     <bean id="deliveryModeGroupRuleParameterValueMapper" class="com.rodanandfields.promotionengine.mappers.DeliveryModeGroupRuleParameterValueMapper">
             <property name="delieveryModeGroupService" ref="delieveryModeGroupService" />
         </bean>
     
         <bean id="productRuleParameterValueMapperDefinition" class="de.hybris.platform.ruleengineservices.rule.strategies.impl.RuleParameterValueMapperDefinition">
             <property name="mapper" ref="deliveryModeGroupRuleParameterValueMapper" />
             <property name="type" value="ItemType(DeliveryModeGroup)" />
         </bean>
    
    

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.