Extending the Order facade client that initiates the creation of recurring order in the Subscription Manager
In this lesson, you extend
the process action and the Order facade client commands. The updated
facade client command accepts the new parameters from the Aurora storefront
for the day-of-month schedule type. The process action command builds
the parameters for the day-of-month schedule and invokes Subscription
Manager facade client.
Procedure
- Copy ServiceProviderProcessRecurringOrderCmdExtImpl.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.order.commands.
- Copy ServiceProviceProcessRecurringOrderCmdExtImpl.java from temp\src\com\mycompany\commerce\order\commands to the Package created in step 1c.
- Copy ServiceProviderOrderFacadeConstantsExt.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.order.facade.
- Copy ServiceProviderOrderFacadeConstantsExt.java from temp\src\com\mycompany\commerce\order\facade to the Package created in the preceding step. This constants file is used in the client facade.
- Copy ServiceProviderOrderFacadeClientExt.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.order.facade.client.
- Copy ServiceProviderOrderFacadeClientExt.java file from temp\src\com\mycompany\commerce\order\facade\client to the Package created in step 3c.
- Update the process action command implementation to use
the following one in the CMDREG table:
- Update the struts configuration file for the order service
to use the new facade client.
- Save your changes.