What are the new feature in wcs7?
1.Multi-channel precision marketing.
2.Mobile commerce
3.Social Commerce
4.new starter stores enabled by Web 2.0 technology(EliteB2B)
5.efficient data loading utility
6.IBM Management Center enhancements
7.Ant-based migration assistance utilities
8.BOD command framework.
What is CommandFactory.createCommand() method?
This method searches the command registry(CMDREG table) for an entry corresponding to the specified command name (Interface)and storeId. if no entry is found for specified store, it will look for an entry corresponding to storeId=0. if both fail, it will check for a default implementation of the command from the interface and returns an entry that represent the default implementation of the interface.
Ex: static final String defaultCommandClassName = "com.ibm.commerce.sample.commands.MyNewControllerCmdImpl";
so, when you make a command with the CommandFactory class, you need to pass in the interface name, rather than the implementation class, since the field looked up in the database is the CMDREG.INTERFACE field.
if you specify the implementation class (MyNewControllerCmdImpl) rather than the interface (MyNewControllerCmd) may result in a ClassNotFoundException.
Payment flow in WCS?
paymentConfiguration="CreditCardOnline"
paymentActionRule="Early Approval"/>
1.Multi-channel precision marketing.
2.Mobile commerce
3.Social Commerce
4.new starter stores enabled by Web 2.0 technology(EliteB2B)
5.efficient data loading utility
6.IBM Management Center enhancements
7.Ant-based migration assistance utilities
8.BOD command framework.
What is CommandFactory.createCommand() method?
This method searches the command registry(CMDREG table) for an entry corresponding to the specified command name (Interface)and storeId. if no entry is found for specified store, it will look for an entry corresponding to storeId=0. if both fail, it will check for a default implementation of the command from the interface and returns an entry that represent the default implementation of the interface.
Ex: static final String defaultCommandClassName = "com.ibm.commerce.sample.commands.MyNewControllerCmdImpl";
so, when you make a command with the CommandFactory class, you need to pass in the interface name, rather than the implementation class, since the field looked up in the database is the CMDREG.INTERFACE field.
if you specify the implementation class (MyNewControllerCmdImpl) rather than the interface (MyNewControllerCmd) may result in a ClassNotFoundException.
Payment flow in WCS?
- Customer select payment method(VISA) from store front.
- OrderProcess invokes PrimePayment task command.
- PrimePayment task command calls the Payment rules engine.
- Payment rules engine determines the Action that needs to be performed.
- The Action (wrapped into event i.e, Approve,Credit, Deposit) is passed to the Payment plug-in-controller.
- Payment plug-in controller determines which plug-in to use.
- plug-in interacts with the Payment Service Provider (PSP).
All configures are there in
xml/config/payment(s)/
xml/config/payment(s)/
1.paymentmapping.xml.
<Mapping paymentMethod="VISA"paymentConfiguration="CreditCardOnline"
paymentActionRule="Early Approval"/>
2.PaymentMethodConfigurations.xml
3.PaymentRules.xml
<PaymentRule name="Early Approval">
<PrimePaymentEvent targetState="APPROVED" />
<ReservePaymentEvent targetState="APPROVED" />
<FinalizePaymentEvent targetState="DEPOSITED" />
</PaymentRule>
<PrimePaymentEvent targetState="APPROVED" />
<ReservePaymentEvent targetState="APPROVED" />
<FinalizePaymentEvent targetState="DEPOSITED" />
</PaymentRule>
Payment Tables:
POLICY, POLICYDESC, POLICYTYPE, ORDPAYMTHD, ORDPAYINFO, EDPPAYINST, EDPORDER,
PAYSUMMERY.
PAYSUMMERY.
select * from policy table where policyname='VISA'
What is calculation usage?
CALUSAGE_ID CALUSAGE
------------------------------------------
-1--------------------- Discount
-2--------------------- Shipping
-3--------------------- Sales Tax
-4---------------------- Shipping Tax
-5 ------------------------Coupon
-6--------------------------- Surcharge
-7------------------------ Shipping Adjustment
What are the different tools available in commerce?
1.Websphere Commerce Administration Console.
2.Websphere Commerce Organization Administration Console.
3.WebSphere Commerce Accelerator.
4.IBM Managemet Center for Websphere commerce.
Use of Management Center?
creating promotions, cross sell, e-spots.
Command life cycle?
isGrneric()-->setRequestProperties(TypedProperty reqParms)-->validateParameters() -->getResources() --> performExecute().
PromotionCodeAddRemoveControllerCmd,AddOrderItemWithPromotionCodeOrCouponCmd,CouponAddRemoveControllerCmd and PromotionEngineOrderCalculateCmdImpl are used to add the promotion code to the order.
How to forward from controller command to view ?
TypedProperty responseProperties = getResponseProperties();
responseProperties.put(ECConstants.EC_VIEWTASKNAME, "MyView");
Types of Exceptions used in commerce?
ECApplicationException:-This exception is thrown if the error is related to user input and will always fail. For example, when a user enters an invalid parameter, an ECApplicationException is thrown.
ECSystemException:-This exception is thrown if a runtime exception or a WebSphere Commerce configuration error is detected. Examples of this type of exception include create exceptions, remote exceptions, and other EJB exceptions.ECSystemException is retriable.
ECApplicationException:-This exception is thrown if the error is related to user input and will always fail. For example, when a user enters an invalid parameter, an ECApplicationException is thrown.
ECSystemException:-This exception is thrown if a runtime exception or a WebSphere Commerce configuration error is detected. Examples of this type of exception include create exceptions, remote exceptions, and other EJB exceptions.ECSystemException is retriable.
ECException is the super class of the both the Exception.
What is calculation usage?
CALUSAGE_ID CALUSAGE
------------------------------------------
-1--------------------- Discount
-2--------------------- Shipping
-3--------------------- Sales Tax
-4---------------------- Shipping Tax
-5 ------------------------Coupon
-6--------------------------- Surcharge
-7------------------------ Shipping Adjustment
What are the different tools available in commerce?
1.Websphere Commerce Administration Console.
2.Websphere Commerce Organization Administration Console.
3.WebSphere Commerce Accelerator.
4.IBM Managemet Center for Websphere commerce.
Use of Management Center?
creating promotions, cross sell, e-spots.
Command life cycle?
isGrneric()-->setRequestProperties(TypedProperty reqParms)-->validateParameters() -->getResources() --> performExecute().
What is Inventory?
Available to promise (ATP),non-ATP,no inventory,external inventory,DOM invesntory.
Available to promise (ATP),non-ATP,no inventory,external inventory,DOM invesntory.
The possible values are:
-1=ATP
-2=Non-ATP
-3=No inventory
-4=External inventory management system
-5= DOM Inventory
SELECT INVENTORYSYSTEM FROM STORE WHERE STORE_ID=""
Promotions in wcs?
Order level promotions,Product promotion,Shipping promotions.
Order level promotions,Product promotion,Shipping promotions.
Tables:-PX_PROMOTION, CALCODE, CLCDPROMO, CALCODEDESC, ORDADJUST, ORDADJDSC.
PromotionCodeAddRemoveControllerCmd,AddOrderItemWithPromotionCodeOrCouponCmd,CouponAddRemoveControllerCmd and PromotionEngineOrderCalculateCmdImpl are used to add the promotion code to the order.
Catalog subsystem?
Tables:-
CATENTRY,CATENTREL,CATENTDESC,CATRELTYPE.
CATENTRY,CATENTREL,CATENTDESC,CATRELTYPE.
TopCategoryDisplayCmd
CategoryDisplayControllerCmd
ProductDisplayControllerCmd
CategoryDisplayControllerCmd
ProductDisplayControllerCmd
AttributeCreateControllerCmd,ProductPricingControllerCmd,GetContractUnitPriceCmd.
How to redirect from controller command to view ?
responseProperties.put(ECConstants.EC_VIEWTASKNAME, ECConstants.EC_GENERIC_REDIRECTVIEW);
responseProperties.put(ECConstants.EC_REDIRECTURL, "MySearchView");
responseProperties.put(ECConstants.EC_VIEWTASKNAME, ECConstants.EC_GENERIC_REDIRECTVIEW);
responseProperties.put(ECConstants.EC_REDIRECTURL, "MySearchView");
How to forward from controller command to view ?
TypedProperty responseProperties = getResponseProperties();
responseProperties.put(ECConstants.EC_VIEWTASKNAME, "MyView");
No comments:
Post a Comment