Extending the process action that creates the recurring order in the Subscription Manager
When you create a subscription entry, the create action starts the schedule
evaluate command to calculate the full schedule by using the simple schedule type by
default.In this tutorial, you extend the recurring order create process action to use
the new schedule evaluation command that is created in this tutorial. This extension validates the
new parameters and computes the full schedule by using the day-of-month schedule type.
Procedure
- Copy the SubscriptionFacadeConstantsExt.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.subscription.facade.
- Copy SubscriptionFacadeConstantsExt.java file from temp\src\com\mycompany\commerce\subscription\facade to the Package created in step 1c.
- Copy the SubscriptionServerConstantsExt.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.subscription.facade.server.helpers.
- Copy SubscriptionServerConstantsExt.java file from temp\src\com\mycompany\commerce\subscription\facade\server\helpers to the Package created in step 2c.
- Copy the SubscriptionApplicationMessageKeysExt.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.subscription.logging.
- Copy SubscriptionApplicationMessageKeysExt.java file from temp\src\com\mycompany\commerce\subscription\logging to the Package created in step 3c.
- Copy ProcessSubscriptionCreateActionCmdExtImpl.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.subscription.facade.server.commands.
- Copy ProcessSubscriptionCreateActionCmdExtImpl.java file from temp\src\com\mycompany\commerce\subscription\facade\server\commands to the Package created in step 4c.
- Copy the SubscriptionFacadeClientExt.java file:
- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.subscription.facade.client.
- Copy SubscriptionFacadeClientExt.java file from temp\src\com\mycompany\commerce\subscription\facade\client to the Package created in step 5c.
- Update the create action command implementation in the CMDREG table to use the following one: