Custom Java Code Commands

Custom Java Code commands are a set of “standard” Java classes that are configurable in the properties file. With these standard Java classes, you do need to write any Java code— you just need to understand what the command does and the parameters it takes. Enter the following to invoke these commands:

alter system solve constraint using rule "MyRule1"

MyRule1 is defined in the properties file as follows:

	ConstraintSolver.MyRule1.classname=com.interlacesystems.rules.PreviousValueCopier
ConstraintSolver.MyRule1.description=Copies current week values to previous week 
ConstraintSolver.MyRule1.SourceMeasures=MS DEMAND
ConstraintSolver.MyRule1.TargetMeasures=LAST WEEK MS DEMAND
ConstraintSolver.MyRule1.Cube=DriveDemand
ConstraintSolver.MyRule1.Condition=isNotPast
ConstraintSolver.MyRule1.Levels=DriveMedia-Level1,Week

Custom java classes are solvers: they solve a violation of some business rule or constraint. Standard solvers take cube, levels, and condition as arguments.

Solver behavior includes:

Conditions supported by Integrated Operational Planning: