Name
global.RecalculationConstraintsStrategy
Description
Strategy for Recalculation Constraints
Script
var RecalculationConstraintsStrategy = Class.create();
RecalculationConstraintsStrategy.prototype = {
initialize: function() {
},
recalculationConstraint: function(topTaskRecord, current) {
var recalculationConstraintClass;
if (topTaskRecord.instanceOf('pm_program')) {
recalculationConstraintClass = new ProgramRecalculationConstraints();
} else {
recalculationConstraintClass = new BaseRecalculationConstraints();
}
return recalculationConstraintClass.getConstraints(topTaskRecord, current);
},
type: 'RecalculationConstraintsStrategy'
};
Sys ID
8cff67719f301200598a5bb0657fcf86