Configuration API
Configuration module example
define(function() {
"use strict";
// The value of the module is an IRuleSet.
return {
rules: [
// IRule 1
{
select: {
module: "my/Car",
application: "my/vehicleEditor"
},
apply: {
tireSize: 18,
exteriorColor: "caribbean-blue"
}
},
// IRule 2
{
priority: 1,
select: {
module: "my/Candy"
},
apply: {
cocoaPercentage: 0.9,
fillingFlavour: "orange"
}
},
// IRule 3
{
select: {
module: [
"my/friends/john",
"my/friends/marie"
]
},
apply: {
empathyLevel: 0.6
}
},
// IRule 4
{
select: {
module: "my/houses/main"
},
deps: [
"lodash",
"./baseHouseSchematics"
],
apply: function(_, baseHouseSchematics) {
return _.merge(baseHouseSchematics, {
averageSummerTemperature: 23
});
}
}
]
}
});
Global configuration file
Known values of Pentaho platform environment variables
Last updated
Was this helpful?

