Extending the schedule action that creates the child orders of the recurring order in the Subscription Manager
When child orders are created for a recurring order, the schedule action starts the
schedule evaluation command to compute the next fulfillment given its previous occurrence. The
default schedule evaluation command that is used is the simple schedule implementation.
In this step, you extend the create child order schedule action to use the new schedule
evaluation command that is created in this tutorial. This extension computes the next occurrence for
the day-of-month schedule type.
Procedure
- Copy the
SubscriptionCreateChildOrderSchedulerCmdExtImpl.java
file:- In the Enterprise Explorer view, expand .
- Right-click .
- Name the Package: com.mycompany.commerce.subscription.scheduler.actions.
- Copy SubscriptionCreateChildOrderSchedulerCmdExtImpl.java file from temp\src\com\mycompany\commerce\subscription\scheduler\actions to the package created in step 1c.
- Update the create child order schedule action command implementation
in the CMDREG table to use
the following one: