atg - When does the addItemToOrder pipeline get called? -
while adding item cart, highlevel flow of method call -
handleadditemtoorder() -> additemtoorder() -> mergeiteminputforadd() -> doadditemtoorder -> runprocessrepriceorder() -> runprocessadditemtoorder().
the chainid last pipeline defined in cartmodifierformhandler.additemtoorderchainid per oracle documention. have few questions on execution of last pipeline -
- what pipeline do? there no details provided in documentation.
- there component purchaseprocesshelper contains same method runprocessadditemtoorder(). method gets called when item added cart? if yes, how control flows method.
please me in understating this. (please provide relative se-up in configuration files of cartmodifierfromhandler , purchaseprocesshelper)
- what pipeline do? there no details provided in documentation.
nothing default, because cartmodifierformhandler.additemtoorderchainid default set null, no pipeline run.
go local /dyn/admin, , view service configuration cartmodifierformhandler. (http://hostname:port/dyn/admin/nucleus/atg/commerce/order/purchase/cartmodifierformhandler/?propertyname=serviceconfiguration) here see property value additemtoorderchainid has been commented out:
#additemtoorderchainid=additemtoorder why has been commented out? take @ pipelinemanager:
<!-- these items commented out because default not need run chains <pipelinechain name="additemtoorder" transaction="tx_required" headlink="???"></pipelinechain><pipelinechain name="setorder" transaction="tx_required" headlink="???"></pipelinechain> --> by default, there no chains run, implementations, may care so, or may want customize component class cartmodifierformhandler service.
- there component purchaseprocesshelper contains same method runprocessadditemtoorder(). method gets called when item added cart? if yes, how control flows method.
once again, default method not invoke pipeline chain, because purchaseprocesshelper.additemtoorderchainid has been set null. when method invoked? not invoked cartmodifierformhandler adds item order. believe convenience method used other form handlers need add item cart.
Comments
Post a Comment