Skip to Content
0
Former Member
Jan 07, 2015 at 01:39 PM

How to trigger workflow when product is saved in Product Cockpit ?

469 Views

Hi Experts ,

I want to trigger workflow when I save a product in product cockpit. I have used activation script to trigger the workflow.

 action.equals("save")  &&
  
 ((de.hybris.platform.servicelayer.type.TypeService) Registry.getApplicationContext().getBean("typeService")).isAssignableFrom("Product", itemType.getCode())

The problem is,in Product Cockpit , there is no save button for saving the product. When ever we step out of field , automatic save is called. Again after modifying the other field and after steping out , save is called. So save is called twice and hence workflow is triggered twice.

My requirement is to call trigger workflow only once when u step out of editor area.

Please help me out how to achieve the above

Thanks,