Copying entity-specific rules between entities
Your solution might require copying all the entity-specific rules that are associated with a item or category to be immediately made available on another item or category. This might be needed when a user creates a new item or category by cloning an existing item or category.
com.ibm.ccd.solution.wodm.api.WODMAPI
interface. A reference to the class that is
implemented in this interface can be obtained through the static method
getWODMAPIInstance()
in the WODMInstanceHelper
class.The
WODMAPI interface includes methods copyItemSpecificRules()
and
copyCategorySpecificRules()
that allow your solution to copy the rules that are
associated with the source item or category in IBM® WebSphere®
Operational Decision Manager, and associate the copied rules with the target item or category.
These methods can be started from your solution code that runs in different contexts (such as the post processing extension point for the catalog) or a custom tool in your solution to allow business users to clone existing items or categories.