-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathModuleConfig.bx
More file actions
50 lines (44 loc) · 1.37 KB
/
Copy pathModuleConfig.bx
File metadata and controls
50 lines (44 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
* www.ortussolutions.com
* ---
*/
class {
// Module Properties
this.title = "rulebox"
this.author = "Ortus Solutions"
this.webURL = "https://www.ortussolutions.com"
this.description = "A natuarl language rule engine for ColdBox apps"
// Model Namespace
this.modelNamespace = "rulebox"
// Class Mapping
this.classMapping = "rulebox"
// Dependencies
this.dependencies = []
// Global application helper mixins (handlers/views/layouts): ruleBook( name )
this.applicationHelper = [ "mixins/Helpers.bxm" ]
/**
* Configure Module
*/
function configure(){
variables.settings = {
// Named rulebook declarations: { name : path | inline-array | { source, actions, predicates } }
// See the "Externalized Rule Definitions" guide for the full settings shape.
rulebooks = {},
// *.json/*.yaml files dropped here are auto-discovered; name = filename without extension
conventionPath = "config/rulebox"
}
}
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
// Custom injection DSL: inject="rulebook" (the registry) / inject="rulebook:{name}" (a provider)
wirebox.registerDSL( namespace = "rulebook", path = "rulebox.models.RuleBookDSL" )
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload(){
}
}