Hi ,
How can we configure my custom controller which extends ConfigurableFlowController,so that when onclick event occurs in wizard(create-wizard) my custom controller will get invoked.Can you please explain how flow goes while click on next or back or cancel button?which methods are invoked first? How controllers are mapped?
Hi,
the documentation of Configurable Flow Widget and tutorial on How to extend a widget will give you all the answers.
When you extend the widget and override just the controller be sure to change the *id*s in the widgets.xml to use your extended widget. The rest should just work. The only issue I know about is the definition.xml - when you extend the widget you may have to redeclare all sockets and settings (you may just copy-paste the - it's a known bug.
Cheers, Wojtek
Thank you for your information.
I have created one widget which extends configurableflow (com.hybris.cockpitng.widgets.configurableflow) widget.I have declared same widget in my custom backoffice widget xml configuration as below.
Now when any onclick events occur from wizard my controller should get invoked,but still existing controller(ConfigurableFlowController) is getting invoked.
Hi,
is this the only instance of the configurable flow? I assume yes. If not - are the right connections used?
have you re-declared the controller in definition.xml of your new widget?
It should work if the configuration is OK. If not you will have to ask at support@hybris.com since the shreads of information I see are insuficient to diagnose the problem.
Cheers, Wojtek
I have attached snippet of configuration file in myextenstion backoffice widget.xml.link text
is configuration sufficient to invoke my controller not existing one? or i missed any thing in above configuration?
Add a comment