Saturday, September 3, 2011

Order & Login flow commands

This post was requested in the comments section last week and  I tried to cover if not all, most of the commands in these flows.

Order Flow:
.
Flow
Controller Commands
Task Commands
Add/Update Items to Cart
OrderItemAddCmdImpl
OrderItemUpdateCmdImpl

Display Cart:
OrderItemDisplayCmdImpl
CheckInventoryCmdImpl
OrderItemDeleteCmdImpl
DoInventoryActionCmdImpl
Checkout/
Review
OrderPrepareCmdImpl

Submit/Place Order
OrderProcessCmdImpl


Order Calculate Command: OrderCalculateCmdImpl, This command is very heavy and is used for calculations on promotions/taxes/shipping discounts. It could be called from Cart display page and Order checkout page, it depends on the requirements and also on cart merge during login. Make sure this command is called less frequently.

Login/Registration:


Flow
Controller Commands
Registration Add/Update
UserRegistrationAddCmdImpl/
UserRegistrationUpdateCmdImpl

Registration using Admin access
UserRegistrationAdminAddCmdImpl/
UserRegistrationUpdateCmdImpl
Login
LogonCmdImpl
Password Reset
ResetPasswordCmdImpl
Asynchronous event after Password Reset
SendPasswordNotificationCmdImpl
(This one’s a task command)
Log off
LogoffCmdImpl
The Asynchronous event after password reset, there is an event that triggers SendPasswordNotificationCmd.

8 comments:

  1. good article for beginners.

    ReplyDelete
  2. What is the command that is used to approve an order in B2B order flow?

    ReplyDelete
  3. Amazingly described...

    ReplyDelete
  4. Hi Raj, We have one issue at present in WCS Production support.
    Could you help us to resolve this issue. Do you have any idea why this is happening inconsistently and how to fix it ?
    Thanks in advance.
    ------------------------------
    Issue:
    User pressed the submit button order in the 'Order preview' screen
    The message "You do not have permission" is displayed.
    But Order placed to external system without problem and confirmed by JDE system.
    This issue is coming occasionally. User is not getting regularly this issue.

    Error log below for the same above issue:
    [12/11/12 ] CommerceSrvr E AccManager isAllowed CMN1501E: User does not have the authority to perform action "com.ibm.commerce.order.commands.OrderProcessCmd" on resource "com.ibm.commerce.order.objects._Order_Stub" for command "OrderProcess".

    [12/11/12] CommerceSrvr A com.commerce.order.commands.ExtOrderProcessCmdImpl checkResourcePermission The user does not have the authority to run this command "OrderProcess".
    ------------------------------------------

    ReplyDelete
  5. This is happening because the command is called from a different useractivity cookie, happens normally when doing tab browsing using same account.

    ReplyDelete
  6. Hi Naveen,
    Thanks for your reply. Can you be little more elaborative. I'm not getting what you mentioned about this "tab browsing using same account".

    Thanks in advance.

    Thanks,
    Venkata.

    ReplyDelete