Customers who wish to have milestone deliveries created when a milestone creation event is raised should follow the steps below.
- For milestones configured at the case level:
- Configure the Creation Event for a milestone.
- Define an entry in handler_config.xml to map the configured Creation Event class to 'MilestoneCreationEventHandler'.
- Customers should raise the creation event with 'caseID' as primary data.
- For milestones configured on case component level:
- Configure the Creation Event for a milestone.
- Define an entry in handler_config.xml to map the configured Creation Event class to 'MilestoneCreationEventHandler'.
- Implement the sample interface 'MilestoneComponentDelivery' and provide an implementation for the 'populateMilestoneCreationDetails' method. This method should populate the milestone creation start date as per the business requirements.
- Create a module class that extends the AbstractModule (com.google.inject.AbstractModule).
- Define a Map Binder to bind implemented class to 'MilestoneComponentDelivery' interface.
Ex: MapBinder<String, MilestoneComponentDelivery> mapbinder
= MapBinder.newMapBinder(binder(), String.class,
MilestoneComponentDelivery.class);
mapbinder.addBinding().toInstance
(new 'customimplentationclass'();
- Customers should raise the creation event with 'caseID' as primary data and ID of the component as the secondary data.