Extend the existing contract model
A contract can be made up of one or more terms and conditions objects, each of which refers to a policy. The subsequent sections describe the steps necessary for creating a new business policy and integrating this into the business flow.
- Create a new business policy
Creating a business policy type typically involves registering a unique business policy in the database, as well as creating a new business policy command.
- Register the new terms and conditions object
This section refers to relating a terms and conditions object to a new business policy.
- Create the enterprise bean
To add a new terms and conditions object for use in WebSphere Commerce, create an Enterprise Java Bean to represent it. In this task, you create a new CMP enterprise bean to represent the term and condition subtype.
- Create an access bean and deploying
In this task we will create an access bean for the new business policy, and create a deployment command for it.
- Update WebSphere Commerce Accelerator to use the new term and condition
Once you have created new terms and conditions, you can update WebSphere Commerce Accelerator so that it can be used to create new contracts that include those new terms and conditions.
- Invoke the new business policy
This section refers to invoking the new business policy.